Count characters in user-defined strings

Hello PLCnext-Community & Phoenix Contact-Team,

is it possible to count the characters in a user-defined string variable (e.g. ‘STRING_1000’) ?
LEN() function is accepting STRING and WSTRING as input, but doesn’t seem to work with user-defined string variables.

Thanks
Mathias

Hello Mathias,
I have successfully recreated your use case.

Does it work for you?

Thanks for the quick response.
It was not working in my PLCnext Engineer 2025 project.

But after your post I realized that a version 2026 is already available.
It´s working fine now, thanks for the quick fix.

Best regards
Mathias