jon_wootton
Member
I am using VBA code to implement a confirmation for device commands in factory talk SE. I want to have a public routine I can call from any display to perform the confirmation.
The AB knowledgebase suggested creating a screen that is called upon startup with the parameters /ZA to cache the display and run it at runtime. I have declared the Public Routine in this display but when I click one of my button with the Call to the subroutine I get a failure.
The failure is that the routine being called has not been declared. Is there a way for code in graphics to call routines in other graphics or do I need to declare the subroutine in each graphic I want to use it in?
The AB knowledgebase suggested creating a screen that is called upon startup with the parameters /ZA to cache the display and run it at runtime. I have declared the Public Routine in this display but when I click one of my button with the Call to the subroutine I get a failure.
The failure is that the routine being called has not been declared. Is there a way for code in graphics to call routines in other graphics or do I need to declare the subroutine in each graphic I want to use it in?