newTIboyRob Posted May 30, 2023 Share Posted May 30, 2023 Hello there. So I can't recall how to program something in BASIC that also needs to show the use of quotation marks in a command on the screen output. (In essence, I just want to display, on the screen, the program below which requires the command in line 20 to show that it needs to be within quotes) My program is: 10 ? "10 HOME" 20 ? "20 PRINT CHR$(4)"CAT" 30 ? "30 END" How do I fix line 20? Is there a bracket in there? Thanks Quote Link to comment Share on other sites More sharing options...
newTIboyRob Posted May 30, 2023 Author Share Posted May 30, 2023 I found an old book in the basement that luckily listed the CHR$ values in BASIC, so I was then able to figure the mystery out myself. Kinda cool! 1 Quote Link to comment Share on other sites More sharing options...
Iamgroot Posted May 31, 2023 Share Posted May 31, 2023 Yep, you have to use CHR$ (34). A simpler method is to assign a string variable, then use that. Q$ = CHR$(34) ? Q$ "Hello"Q$" "Q$"World"Q$ Quote Link to comment Share on other sites More sharing options...
newTIboyRob Posted May 31, 2023 Author Share Posted May 31, 2023 Nice to know that way works as well. Thanks. Quote Link to comment Share on other sites More sharing options...
+OLD CS1 Posted May 31, 2023 Share Posted May 31, 2023 In TI BASIC, you use double-double quotes. e.g. 10 PRINT "I SAID ""HELLO!""" I just tried in AppleSoft BASIC and CBM BASIC which failed. I always assumed that was how other BASICs worked. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.