| || |
What syntax can I use to count the tabs in my vb application in TestComplete? I can refer to it's caption e.g
VBObject("X").Caption but not it's Count or Index.
Re: Tab Count
If the standard TabStrip control is used in the tested application, you can use its Tabs property to obtain the Tabs collection. Here is a sample script:
<font class="small">Code:</font><hr /><pre>
For I = 1 To TAB_CONTROL.Tabs.Count
The Count property of the Tabs object returns the number of the tabs the TabStrip control contains. Using the Item property of the Tabs object, you can access a specific tab. This object has the Caption property.