drbitboy
Lifetime Supporting Member
Input_Change is called after Display_AnimationStart:
Input is an object on the display that is called.
When the display is opened I write "" to inputs by referencing directly the objects which are exposed to VBA.
When the operator changes the Input value on the display at runtime, the code checks if the input is not 0, so it can enable a button which is an object on the same display.
Where do you instantiate that [Input] object, i.e. the same way you instantiate INDICE_LISTA_AB?
See here: https://www.plctalk.net/qanda/showthread.php?p=645502#post645502; note that the [tag1] object is instantiated in Subroutine Display_AnimationStart in that code.