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

string as array of bytes

  • jeffersonhui

    jeffersonhui - 2021-11-29


    In Codesys 3.5, STRINGs are treated as an array of byte so I can simply use the array operator to get the ASCII value for a byte location in the string. However, I get an error when I try this in Codesys 2.3. I attached a screenshot.
    Does anyone know if this is possible in Codesys 2.3?


    • jeffersonhui

      jeffersonhui - 2021-11-30

      I looked through some old Forge talks and figured out that you can use pointers to point between the string and the array of bytes. This is SOLVED.


Log in to post a comment.