Append (,)
The ,
(comma)
appends an expression to a string.
Syntax
expr , expr
- expr can be a character, numeric or date/time expression.
Usage
The comma operator formats and concatenates expressions together.
This operator can only be used in some instructions such as LET
, PRINT
, MESSAGE
, ERROR
and DISPLAY
instructions.
Use the comma concatenation operator when data needs to be formatted for printing and display.
To concatenate elements in a compressed manner, use the ||
concatenation operator.
Example
MAIN
DEFINE s STRING
LET s = "A",-999; DISPLAY s
LET s = 123, 456; DISPLAY s
DISPLAY "Today:", TODAY, " and a number: ", 12345.67
END MAIN
Output:
A -999
123 456
Today:12/22/2018 and a number: 12345.67