Ho to insert the character <"> in a Wstring

2019-11-26
2019-11-26
  • mattia.delloca - 2019-11-26

    Good morning everybody,

    I'm new in Codesys Programming and I need to declare a Wstring that containt che charachter <">.
    Since this character delimits a Wstring, is there a way to insert it in the string?. The Wstring that I need to declare is

    {123"Test"}

    Thank you in advance,

    Mattia

     
  • e.kislov - 2019-11-26

    wsVar: WSTRING := "{123$"Test$"}";

     
  • mattia.delloca - 2019-11-26

    Thank you very much for your answer. Problem solved.

    Best Regards,
    Mattia

     

Log in to post a comment.