Trail: PROIV Documentation > Developer > PROIV Developer > Developing Functions > Events and Logic > LEN

 

 

Purpose

LEN determines the number of bytes in a string expression.
 

Syntax

variable = LEN (operand)
 

Operation

operand is any valid alphanumeric or wide character constant, variable, or expression.
 

Remarks

The value returned is in terms of the number of bytes for alphanumeric strings, and number of characters for wide character strings.
 

Example

Assume $A = ‘COMPUTER’ and $B = ‘XYZ’.

#C = LEN ($A)    sets #C to 8
#C = LEN ($B)    sets #C to 3
 

Comment on this topic

Topic ID: 520074