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

 

 

Purpose

LEN_SCREEN enables PROIV applications to find the number of screen positions occupied by a multi-byte string.
 

Syntax

variable = LEN_SCREEN(input-string)
 

Operation

input-string is any valid alphanumeric, wide, character constant, mixed-byte character constant (e.g. a constant with both WIDE and normal ALPHA characters), variable, or expression.
 

Remarks

The value returned is in terms of the number of screen positions occupied by the string, regardless of whether the characters are WIDE, ALPHA, or a mix of the two types.
 

Example

Assume $A = ‘ABC1234’

#C = LEN_SCREEN($A)    sets #C = 7
 

Comment on this topic

Topic ID: 520076