amithsm
14 years agoOccasional Contributor
Unable to assign java object using Set
Hi,
I am unable to assign a java object using Set. Testcomplete errors out when the line is executed. Below is the code snippet.
The line "Set tab = guiObject.getItem(ii)" fails however the statement "sTabName = guiObject.getItem(ii).getToolTipText" works fine.
The java object is of type CToolbar
ii=0 nTabs-1
I am unable to assign a java object using Set. Testcomplete errors out when the line is executed. Below is the code snippet.
The line "Set tab = guiObject.getItem(ii)" fails however the statement "sTabName = guiObject.getItem(ii).getToolTipText" works fine.
The java object is of type CToolbar
For ii=0 To nTabs-1
ii=0 nTabs-1
Set tab = guiObject.getItem(ii)
Next
For ii=0 To nTabs-1
If ((sTabName = guiObject.getItem(ii).getToolTipText)) Then....