Qbasicnews.com

Full Version: Quotations
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,
I Really need some help. I need to print from a Qbasic program a line of test in quotation marks like:
"Hello"
You cannot put double quotes in a PRINT line. How do I get the line to print out with Quotation marks.

Please Help

A Newbie
well you could do 2 single quotes like this
Code:
Print " ' ' Hello ' ' "
or you could use actual double quotes by using the ascii code 34 like
Code:
Print CHR$(34) + "Hello" + CHR$(34)
Thank you SSC. It's an obvious answer but you know it was one of thoes days.
I completely understand man. I had one of those days once.
Quote:I completely understand man. I had one of those days once.

speedlemon, you are one of those days Tongue
you know i think you're awsome, so don't take offense at that one :bounce:

Oz~
nice idea SSC, it helps me out too, in RPG im makin, the NPC's talk and i need quatations around them