View Single Post
Old 25th February 2004, 22:48   #1  |  Link
WarpEnterprises
C64
 
WarpEnterprises's Avatar
 
Join Date: Apr 2002
Location: Austria
Posts: 830
did you know: string containing quotes

Up today I didn't knew a way to type a string containing quotes.
Well, you can use chr(34), but that's not really short.

I always wondered about the following sentence in the original docu from BenRG:

Quote:
A text string is surrounded either by "quotation marks" or by ``TeX-style quotes''. A text string can contain any character except the terminating quotation mark or double-apostrophe. If you need to put a quotation mark inside a string, use the TeX-style notation.
Well, I never figured out what he meant with TeX-style, because no combination of ' or ` or " worked. So today I looked in the source code - and the solution (which was there since the first day) is THAT SIMPLE:

e.g.

Subtitle(""" now you can put as many " in here as you like""")

TeX-Style = Use three quotes at the beginning and the end and you can put in the string single quotes.
WarpEnterprises is offline   Reply With Quote