Really possibly stupid question

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
que3jxp
Newbie
Posts: 2
Joined: Sat Feb 26, 2005 2:13 pm
Location: Fredericton, New Brunswick, Canada

Really possibly stupid question

Post 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.
Z!re
Veteran
Posts: 887
Joined: Wed Aug 04, 2004 11:15 am

Post by Z!re »

Code: Select all

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


Happy coding.
I have left this dump.
que3jxp
Newbie
Posts: 2
Joined: Sat Feb 26, 2005 2:13 pm
Location: Fredericton, New Brunswick, Canada

Post by que3jxp »

SWEET!!!!!!

Thanks!!!

This site is now very bookmarked!
Z!re
Veteran
Posts: 887
Joined: Wed Aug 04, 2004 11:15 am

Post 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..
I have left this dump.
MystikShadows
Veteran
Posts: 703
Joined: Sun Nov 14, 2004 7:36 am
Contact:

Post 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>
Last edited by MystikShadows on Sat Feb 26, 2005 10:59 pm, edited 1 time in total.
When God created light, so too was born, the first Shadow!

MystikShadows

Need hosting? http://www.jc-hosting.net

Interested in Text & ASCII development? Look no further!
http://www.ascii-world.com
User avatar
Mitth'raw'nuruodo
Veteran
Posts: 839
Joined: Sat Jan 22, 2005 11:04 am
Location: Eastern Coast of US
Contact:

Post by Mitth'raw'nuruodo »

lol :lol:

Of course just looking at his Avatar, mabey sucking up wouldn't be a bad idea...
Last edited by Mitth'raw'nuruodo on Sat Feb 26, 2005 9:55 pm, edited 1 time in total.
"But...It was so beutifully done"
User avatar
{Nathan}
Veteran
Posts: 1169
Joined: Thu Aug 19, 2004 6:08 pm
Location: The wetlands of central Ohio, USA
Contact:

Post by {Nathan} »

<sarcasm> :lol: LOL :lol: </sarcasm>
Image
User avatar
ShadowWolf
Veteran
Posts: 56
Joined: Thu Mar 04, 2004 1:32 pm
Contact:

Post 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.
Rattrapmax6
Veteran
Posts: 1055
Joined: Sun Jan 02, 2005 2:11 pm
Location: At my computer
Contact:

Post 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,. :)
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
Z!re
Veteran
Posts: 887
Joined: Wed Aug 04, 2004 11:15 am

Post 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
I have left this dump.
Rattrapmax6
Veteran
Posts: 1055
Joined: Sun Jan 02, 2005 2:11 pm
Location: At my computer
Contact:

Post by Rattrapmax6 »

:) Aye? Copy/Paste the URL, Its what I did,. :wink:
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
User avatar
Mitth'raw'nuruodo
Veteran
Posts: 839
Joined: Sat Jan 22, 2005 11:04 am
Location: Eastern Coast of US
Contact:

Post 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:
"But...It was so beutifully done"
User avatar
ShadowWolf
Veteran
Posts: 56
Joined: Thu Mar 04, 2004 1:32 pm
Contact:

Post by ShadowWolf »

Post Reply