LEN

LEN

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

Function returns length of a string.

InputType Description
IN ANY_STRINGInput string
OutputType Description
ANY_INTString length

  • © Energocentrum Plus, s.r.o. 2017 - 2024