String Operators
The relational operators =, <>, <, >, <=, and >= all take string operands (see Relational operators). The + operator
concatenates two strings.
String Operators
Operator Operation
Operand Types
Result Type Example
+
concatenation string, packed string, character string
S + '. '
The following rules apply to string concatenation.
The operands for + can be strings, packed strings (packed arrays of type Char), or characters. However, if one
operand is of type WideChar, the other operand must be a long string (AnsiString or WideString).
The result of a + operation is compatible with any string type. However, if the operands are both short strings
or characters, and their combined length is greater than 255, the result is truncated to the first 255 characters.
Dostları ilə paylaş: |