Literals
A literal is a constant value. A literal may be a number or a text string.
The rules for using numeric literals are:
- A numeric literal is in integer or decimal format and can be signed.
- A comma separator should not be included in a numeric literal.
- A numeric literal cannot be greater than 254 digits.
The rules for using text literals are:
- A text literal is enclosed in double quotes.
- A double-quote included in a text literal is released by another double quote.
Literals are encoded in UTF-16 (Unicode).
The following are some examples of literals:
"This is a text literal"
"ABC Company"
"Some ""quoted data"" to show use of a double double-quote."
1.23
-9
1045
Carriage return (CR) and line feed (LF) can be included within a quoted string.
The symbolic representations <CR> and <LF> can also be used within quotation marks when explicitly required. To use the symbolic representation within an expression, the string may be written as separate strings with <CR><LF> between them. For example:
="username=?????" + "<CR><LF>" + "&password=?????"
will place the output username and password information on separate lines.
<CR><LF> must be within quotation marks.