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

Exporting Textlists into Wstrings

harisv
2016-12-17
2018-03-22
  • harisv - 2016-12-17

    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.

     
  • TimvH

    TimvH - 2017-01-24

    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^;

     
  • sbk - 2018-03-22

    How to get Standard64 library? I didnot find in Store.
    Please help.

     

Log in to post a comment.