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

Convert combo box selected items into a string

lucaver89
2020-04-19
2020-04-20
  • lucaver89 - 2020-04-19

    Hi to All,

    I have a textList linked in a combo box as follow:

    1. "SelectionA"
    2. "SelectionB"
    3. "SelectionC"

    When the code is running and one of last three option is selected, the variable change its value from 0 to 2 as well.
    For example: if the "SelectionC" is active the variable value is 2 but it is not enough. I would like have back the selection name and not the position. In this case "SelectionC". Is it possible?

    Thank
    Luca

     

Log in to post a comment.