Page 1 of 1

Really possibly stupid question

Posted: Sat Feb 26, 2005 2:22 pm
by que3jxp
It has been many years since I have sat down and coded in quickbasic, so bear with me.

I am writing a simple program to then compile to exe that will take various inputs and then one off generate a Windows unattended answer file.

The answer file has variables that are wrapped in double quotes such as in this section:
;SetupMgrTag
[Data]
AutoPartition=1
MsDosInitiated="0"
UnattendedInstall="Yes"
How do I get the quotes to print with the PRINT command? This is what I assumed I could do (Note that I am appending to a file with each line):
PRINT #1, " MsDosInitiated="0""
However when I change lines, the editor/compiler changes the line to:
PRINT #1, " MsDosInitiated="; 0; ""
Thanks in advance for the help!
Jason.

Posted: Sat Feb 26, 2005 2:25 pm
by Z!re

Code: Select all

PRINT #1, "MsDosInitiated="+CHR$(34)+"0"+CHR$(34)
34 is the ASCII code for "


Happy coding.

Posted: Sat Feb 26, 2005 2:28 pm
by que3jxp
SWEET!!!!!!

Thanks!!!

This site is now very bookmarked!

Posted: Sat Feb 26, 2005 4:01 pm
by Z!re
np.

If you're interessted, check out www.freebasic.net

It's the successor to QB


A true QB syntax compatible cross-platform language, being developed by v1ctor (v3cz0r) and lillo (Angelo Motala)

It's... awesome.. to say the least..

Posted: Sat Feb 26, 2005 8:24 pm
by MystikShadows
<SuckUpToZ!re>

To go with that http://www.freebasic.net don't forget to git yourself to http://www.freebasic.tk A great forum based freebasic support website ran by "some" of the coolest dudes around...besides me and Nek of course ;-). lol

</SuckUpToZ!re>

Posted: Sat Feb 26, 2005 8:56 pm
by Mitth'raw'nuruodo
lol :lol:

Of course just looking at his Avatar, mabey sucking up wouldn't be a bad idea...

Posted: Sat Feb 26, 2005 9:03 pm
by {Nathan}
<sarcasm> :lol: LOL :lol: </sarcasm>

Posted: Sun Feb 27, 2005 8:32 am
by ShadowWolf
Z!re woudn't it have been a better idea to send him to FBide home page?
or better get a direct like to the FBide package that has the freebasic compiler and fbide put togather pluse has a nice installer.

Posted: Sun Feb 27, 2005 9:45 am
by Rattrapmax6
:shock: Yeah, what Shadow said! ^^ I got all mixxed up on that Main site with no IDE,.. here is the site with the FBIde,.

http://www.hot.ee/fbide/

Happy FBing.. :wink: ,. Second download down sofar I think, FBide + FBC,. :)

Posted: Sun Feb 27, 2005 11:50 am
by Z!re
I think FBIDE is linked from freebasic.net

And I don't know the FBIDE url in my head, I dont use it so.. :P


And thanks for the suckup.. :D

Posted: Sun Feb 27, 2005 2:22 pm
by Rattrapmax6
:) Aye? Copy/Paste the URL, Its what I did,. :wink:

Posted: Sun Feb 27, 2005 10:06 pm
by Mitth'raw'nuruodo
Ah, the simplties of things right in front of you but they still elude you = no common sense, stupidity or no coffee. :D lol :lol:

Posted: Mon Feb 28, 2005 9:16 am
by ShadowWolf