| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | QBasic |
* On May 04 16:14 Bob Lawrence wrote to All BL> Hello all, BL> how do you put " in a string in Basic? If I want to BL> print "Hello" (not Hello), I can't do it unless I use BL> print chr$(34); "hello"; chr$(34) 'or BL> print chr$(34) + "hello" + chr$(34) BL> This can't be right! But everything else I try won't work, and BL> the bloody book doesn't even mention it. What am I missing? Most programming languages have you put the literal quote character twice to print it once eg: print ""Hello"" well it's kinda like that in pascal anyway. I can't remember much of my BASIC David --- msgedsq 2.1* Origin: JabberWOCky CBCS +61-7-868-1597 (3:640/305) SEEN-BY: 640/305 711/934 @PATH: 640/305 711/934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.