#1✎ 18SaladFingersI'm trying to insert a print command into another program via a variable (it doesn't matter if this makes sense) and I'm wondering if there is a way to print a quotation. I know in Visual Basic you can just put a \ in and it'll ignore the quotation mark but is there a way in SB?
#2✎ 200LacksHead AdminRNGHiddenEaster EggsDay PersonI like the warm sunshine and wake up early!Express YourselfReadingI like to read books!HobbiesYes, there is, in the keyboard menu.
Some of the vets know fancier methods tho.
#3✎ 103raimondzFirst WeekJoined in the very first week of SmileBASIC SourceWebsiteExpert ProgrammerProgramming no longer gives me any trouble. Come to me for help, if you like!Programming StrengthNight PersonI like the quiet night and sleep late.Express YourselfYes, there is a way. Just use CHR$ to get that character. See the code below:
? Q$+"HELLO WORLD"+Q$
#4✎ 82MZ952Intermediate ProgrammerI can make programs, but I still have trouble here and there. Programming StrengthDrawingI like to draw!HobbiesReadingI like to read books!HobbiesI have used this just because it doesn't require you to store the value in a variable:
It can be used like:
PRINT Q()+"HELLO WORLD"+Q()
#5✎ 118712Me21AdminAmazing ContributorSomeone thinks I'm an awesome person who has done so much for the community!AchievementsHelperReceived for being very helpful around SmileBASIC SourceAchievementsSpecial AdminHiddenEaster EggsSpeed test results (MS per 1,000,000): "”" 1878 (doesn't work as a " in code)
KEY(3) 2888 (don't use this lol)
FOR I=1 TO 1000000
S$="thing to test"*1
This isn't really important though, since even the slowest one only takes 0.000004 seconds (PRINT takes around 0.0004).
#6✎ 18SaladFingersThanks so much every one, I just had created a variable to store my quotation, thanks for the help!