Skip to main content

LENGTH

LENGTH(expression)

expressionA string expression.
Return:LENGTH returns a single integer value.

The LENGTH function returns the length of the string resulting from the expression by treating the expression as a temporary STRING.

Example:

INTEGER MyLength := LENGTH('XYZ' + 'ABC');
      //MyLength is 6

See Also: String Operators, STRING