String Concatenation

<str-expr> + <str-expr>                 Concatenate ("add") strings

The + operator is used to concatenate (add) two or more strings. For instance, if S1 has "abc" and S2 has "def", then S1 + S2 produces the string "abcdef". Any two or more string expressions can be concatenated, as long as the total length of the resulting string is limited to 256 characters.

Example

The expression DBL_QUOTE + "title" + DBL_QUOTE returns a value of ""title"" (the word title enclosed in double quotes).

Unlike the OUTPUT command, string concatenation can handle string expressions, but not numeric expressions. In order to include numbers in string concatenation, they must be first converted into string, using the STR_FORMAT function. Example:

MSG = MyString + STR_FORMAT(MyNumber);

 

Some functionality may be dependent on the product package. Contact your Reseller if you require a license.