Documentation

LEN

Function name

LEN

ST call

PROGRAM LEN_DEMO
VAR
STRING1: STRING;
INT1: INT;
END_VAR
INT1:=LEN(IN:=STRING1);
END_PROGRAM

Description

Function returns length of a string.

Inputs

Input Type Description
IN ANY_STRING Input string

Outputs

Output Type Description
=> ANY_INT String length

Application example