WLEN2

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.
Return value
Name | Type | Description |
---|---|---|
WLEN2 | UDINT | Returns the number of characters in a Unicode string of data type WSTRING (length of the WSTRING). |
Inputs
VAR_INPUT
pWSTRING : POINTER TO WSTRING;
END_VAR
Name | Type | Description |
---|---|---|
pWSTRING | POINTER TO WSTRING | 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 |