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

Continuous Updating of Text Fields in Popup

rckalex
2021-11-15
2021-11-16
  • rckalex

    rckalex - 2021-11-15

    It seems that text fields link the text variables utilized in a pop-up display the value that was present when the pop-up was loaded but do not update as the value changes. I am calling up the "popup" by using the "Open Dialog" option on a mouse down event. Is it possible for the text field in such a popup to stay current?

     
    πŸ‘
    1

    Last edit: rckalex 2021-11-15
  • rickj

    rickj - 2021-11-16

    The official answer is to use the VAR_IN_OUT_AS_POINTER attribute a described in the help. I sometimes have trouble getting this to work and instead pass in parameters as 'POINTER TO' or 'REFERENCE TO' data types.

    https://help.codesys.com/webapp/_visu_pragma_var_in_out_as_pointer;product=core_visualization;version=3.5.17.0

     
    πŸ‘
    3
    • rckalex

      rckalex - 2021-11-16

      Thanks for the info! VAR_IN_OUT_AS_POINTER worked as documented for me. I'll fall back to the other suggestions if that falls apart. Thank you!

       

Log in to post a comment.