Parameter Definition
string Enter characters enclosed in quotation marks. The
quotation marks can be either single (') or double
(").
The ASCII values of the characters in the string
are used as a list of byte values.
Within a string, the opposite set of quotation marks
can be used freely as characters. However, if the same
set of quotation marks (as the delimiters) must be used
within the string, then the quotation marks must be
doubled. The doubling does not appear in memory.
For example:
1. 'This "literal" is correct'
2. 'This ''literal'' is correct'
3. 'This 'literal' is not correct'
4. 'This "'literal'" is not correct'
5. "This 'literal' is correct"
6. "This "'literal'" is correct"
7. "This 'literal' is correct'
8. "This ''literal'' is not correct"
In the first, fifth, and seventh cases above, the word
literal is enclosed in one set of quotation marks in
memory. In the eighth case above, the word literal is
not correct unless you really want it enclosed in two
sets of quotation marks in memory.