Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Quotations
#1
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
Reply
#2
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)
url=http://www.smithcosoft.com]SmithcoSoft Creations[/url]
"If you make it idiot proof, someone will make a better idiot" - Murphy's Law
Reply
#3
Thank you SSC. It's an obvious answer but you know it was one of thoes days.
Reply
#4
I completely understand man. I had one of those days once.
Reply
#5
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~
Reply
#6
nice idea SSC, it helps me out too, in RPG im makin, the NPC's talk and i need quatations around them
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)