Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
I am struggling to export the text list i created into wstrings . I know the librady is GetText or DynamicTextGetText , but i cannot implement. Can anyone help me how to do it?
Thank you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am struggling to export the text list i created into wstrings . I know the librady is GetText or DynamicTextGetText , but i cannot implement. Can anyone help me how to do it?
Thank you.
For general WSTRING functions you have to add at least the library Standard64.
In the visualisation manager, you have to enable "use unicodestrings".
Textlist are automatically exported as unicode .csv files if you need to translate this.
If you want to use the textlist text as "WSTRING" in your application, you have to use the specific WSTRING functions:
pwsStr := VisuElems.cmpDynamicText.DynamicTextGetDefaultTextW(ADR(sTextList), ADR(sValue));
or
pwsStr := VisuElems.cmpDynamicText.DynamicTextGetTextW(ADR(sTextList), ADR(sValue));
wsResult := pwsStr^;
How to get Standard64 library? I didnot find in Store.
Please help.