h_jansen
11 years agoOccasional Contributor
Check whether a SwingObject exists in a screen
I have in my application an object which I can access through the following VBscript command, meaning that the tools clicks on it:
Call Aliases.ANVA45.scherm_Formuliersoorten.TabSoort.SwingObject("PicobolTabNative", "Anva", 0).SwingObject("TabbedPane.scrollableViewport").SwingObject("BasicTabbedPaneUI$ScrollableTabPanel", "", 0).Click(24, 9)
Now I want to make a VBscript that can check whether the Object exists, and also continue without an error when it does not.
Can someone give me an example.
Call Aliases.ANVA45.scherm_Formuliersoorten.TabSoort.SwingObject("PicobolTabNative", "Anva", 0).SwingObject("TabbedPane.scrollableViewport").SwingObject("BasicTabbedPaneUI$ScrollableTabPanel", "", 0).Click(24, 9)
Now I want to make a VBscript that can check whether the Object exists, and also continue without an error when it does not.
Can someone give me an example.