Text Data Type

This simple data type denotes a text string.

The maximum length of a Text variable is 1024 characters. The maximum length of a Text field in a table is 250 characters. The length of a text variable equals the number of characters in the string. An empty text string has a length of zero (0). A text string cannot be null.

You can index any character position in a text string, for example A[65]. The resulting value will be a Char Data Type.

Differences Between the Classic Client and RoleTailored Client

In the RoleTailored client, you cannot assign a char to a position in the code variable greater than the current length of the variable +1. For more information, see Char Data Type.

This example shows some typical examples of text strings. In these examples, the text variable has a maximum length of 6.

text := 'ABC';
// Results in a text variable which contains 'ABC'
text := '123456abc';
// Results in a run-time error because the length (9)
// exceeds the maximum length of 6.

Community Additions

ADD
Show: