I've been researching a way to show and hide screens in FactoryTalk SE. I found a couple of threads about it but am running up against a problem apparently not covered there. I created a VBA script that is triggered by a tag and executes this instruction:
Application.ShowDisplay ("<screenName>")
When I run the screen as a client, I get an error message like "VBA stopped because '<screenName>' not found."
Some posted code omitted the parentheses, some included a .gfx file extension but neither of these changes made any difference. I also created a display name with no spaces and still got the "not found" error.
I know the VBA code is triggering because I tested it with a MsgBox and the variable triggers the message box.
Do I need to declare the display as a VBA object somehow or is it some other problem like a path?
Application.ShowDisplay ("<screenName>")
When I run the screen as a client, I get an error message like "VBA stopped because '<screenName>' not found."
Some posted code omitted the parentheses, some included a .gfx file extension but neither of these changes made any difference. I also created a display name with no spaces and still got the "not found" error.
I know the VBA code is triggering because I tested it with a MsgBox and the variable triggers the message box.
Do I need to declare the display as a VBA object somehow or is it some other problem like a path?