Skip to main content

VARSTRING

VARSTRING[n]

A null-terminated character string containing n bytes of data. If n is omitted, the string is variable length to the size needed to contain the result of the cast or passed parameter. You may use set indexing into any string to parse out a substring.

The upper size limit for any VARSTRING value is 4GB.

Example:

VARSTRING3 MyString := 'ABC';
       // declares MyString a 3-byte null-terminated string

See Also: LENGTH, TRIM, Set Ordering and Indexing