string expressions

string expressions


statement.block Index Level u$pl.mon.data
Syntax
Category BASIC
Type Definition
Description a string constant, a numeric constant, a variable with a string or numeric value, a substring, a concatenation of string expressions, an intrinsic function, or a format mask.

Concatenation of strings is specified by a colon (:) or by the "cat" operator. The "cat" operator must be preceded and followed by blanks.

The result of a string expression is an ASCII character string.

String expressions may include arithmetic expressions. The results of any numeric function or arithmetic expression is converted to an equivalent ASCII string.
Options
See Also string.expression logical expressions arithmetic expressions \ expression COUNT : INSERT CAT quotes
Example print "the total amount is " : amount
The string expression consists of a literal string, "the total amount is ", followed by the contents of the variable "amount".

line = "the total amount is " : unit.price * quantity
The results of the arithmetic expression "unit.price * quantity" is converted to ASCII and concatenated to the literal string.
Warnings
Compatibility D3 7.0 AP R83
statement.block Index Level u$pl.mon.data