TAL Reference Manual

Data Representation
TAL Reference Manual526371-001
3-8
Character String Constants
INT numeric constants
INT(32) numeric constants
FIXED numeric constants
REAL and REAL(64) numeric constants
Constant lists
Character String Constants
A character string constant consists of one or more ASCII characters stored in a
contiguous group of bytes.
string
is a sequence of one or more ASCII characters enclosed in quotation mark
delimiters. If a quotation mark is a character within the sequence of ASCII
characters, use two quotation marks (in addition to the quotation mark delimiters).
The compiler does not upshift lowercase characters.
Character String Length
Each character in a character string requires one byte of contiguous storage. The
maximum length of a character string you can specify differs for initializations and for
assignments.
Initializations
You can initialize simple variables or arrays of any data type with character strings.
When you initialize a simple variable, the character string can have the same number
of bytes as the simple variable or fewer.
When you initialize an array, the character string can have up to 127 characters and
must fit on one line. If a character string is too long for one line, use a constant list,
described later in this section, and break the character string into smaller character
strings.
Assignments
You can assign character strings to STRING, INT, and INT(32) variables, but not to
FIXED, REAL, or REAL(64) variables.
" string "
VST0302.vsd