A string consists of a quotation mark (") followed by a sequence of characters terminated by another quotation mark ("). Strings are used as constants to represent any of the data types. All data types available in C/Base are supported by the Report Writer. The following gives some examples of valid strings:
"some normal string constant"
"01/17/83"
"the previous one could be a date"
"10.34"
The value of a string constant is the characters between the quotation marks. For example, a string constant of
"this is the day"
has a value of
this is the day
An empty string is two quotes with no characters in between:
""
A quote can be embedded in a string by using two quotes as in:
"""Look,"" he said, ""This is enough!"""
which has a value of
"Look," he said, "this is enough"