I am using Twincat 3 (4024.10) and I tried the functions "GetTextByStringId" and "GetText" from the library SysLibTargetVisu but the compiler already gives me an error:
Error Unresolved reference: 'GETTEXTBYSTRINGID' 0
It seems that in Codesys 2 works: https://forge.codesys.com/forge/talk/CODESYS-V2/thread/8f2fc2e158/
Thanks in advance!
I remember wasting my time on that too. Unfortunately it seems to be an old undocumented and unmantained library.
I resolved the issue in a couple of hours by writing an xml reader in Java that reads the ids and the texts from the textlist and pushes them over ads to the plc where they are stored in memory. The values can then be used as needed.
The other advantage from this approach is that you do not dipend on the plc hmi license.