Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

The Double Quotes Trick

The Double Quotes Trick

by  qbasicking  Posted    (Edited  )
There has been a lot of questions about double quotes lately. Instead of answering them one by one, here's the answer for you.
say you need to put a quoteation mark into a file. Like this

str$ = "he said"i need quotes.""
PUT #1, 1, str$

you can't do it, heres the trick. The ascii number for the quotation mark is 34.

str$ = "he said" + CHR$(34) + "i need quotes." + CHR$(34)
PUT #1, 1, str$
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top