WLEN2
![WLEN2 1:](Images/png/3515030667__Web.png)
The function returns the number of characters in a Unicode string of data type WSTRING (length of the WSTRING).
The function stops the checking of the input length after Parameterlist.cMaxCharacters
characters in order to avoid an infinite loop.
FUNCTION WLEN2 : UDINT
VAR_INPUT
VAR_INPUT
pWSTRING : POINTER TO WSTRING;
END_VAR
pWSTRING: pointer to the WSTRING variable
Requirements
Development environment | Target platform | PLC libraries to be integrated (category group) |
---|---|---|
TwinCAT v3.1.4022 | PC or CX (x86, x64, ARM) | Tc2_Utilities (System) >= 3.3.21.0 |