Table of Contents

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

InputType Description
IN ANY_STRINGInput string

Outputs

OutputType Description
ANY_INTString length

Application example