Home > Language Reference > Operators

& Operator

Concatenates two strings.

Syntax

Result = String1 &String2

ParameterDescription
ResultString resulting from the concatenation.
String1Any valid expression.
String2Any valid expression.

Remarks

The & operator expects expressions returning character strings. If one of the arguments is not a String, the compiler implicitly converts it using the CStr type conversion function, which can cause an error if the conversion proves impossible. Refer to the documentation on the CStr function for more information.

A character string cannot exceed 32767 characters. If the total size of String1 and String2 exceeds 32767 characters, an error occurs.

System requirements

SystemMinimal versionRemarks
Palm OSPalm OS 3.0-
Windows CEWindows CE 3.0-