Character strings that contain commas, spaces, or quotes that are to be treated as data are complex strings. Complex strings are bounded by single quotes. An example of a complex string is:
'This is a complex string.'
The length of the string includes the blanks and the period, but not the single quotes, so the length of the complex string shown above is 25.
Within quotes, a single quote or apostrophe is represented as data by two single quotes (not a double quote). For example:
'Jane''s book on the Hollywood musical' 'Scott Joplin''s New Rag'
The two single quotes count as one when determining the length of the string. So the first string above has a length of 36 and the second has a length of 22.
|
Copyright © 2013 CA.
All rights reserved.
|
|