Forum Discussion

Vahan's avatar
Vahan
Contributor
14 years ago

VB6 TabControl help

Hello,



I am having trouble with a VB6 Tab control. I have the tab mapped and has the methods I am looking for. When I attempt to use the ClickTab action with a Int Constant of 2 (there are 6 tabs) I get an error message "The Control Item 2 not found"

Any suggestions?



Thanks in advance,



Vahan Mikaelian
  • Hi,



    If you're trying to click a tab by index, make sure that you pass an integer parameter to ClickTab.
  • Hi Jared,



    I am. I have attached a screen shot of the parameter definition.



    Thanks
  • Hi,



    Do you have any other errors before the 'control item not found' error? What TC version and what exact control (name, vendor and version) are you using?
  • Hi again Jared,



    No there are no other errors. 

    Ver: 8.20.538.7

    Its a VB6 Control I have attached a screenshot of the properties.
  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    This looks like a similar problem when using the TMS AdvOfficePager component.  The different tabs/pages are not recognized by TestComplete (as evidenced by the wTabCount being "zero".  I'll have to hunt up the code that I wrote to get around it with the AdvOfficePager but I don't think you're going to be able to use "ClickTab".


  • Ok, I got this issue resolved. Thank you for your help!

    On to the next issue :)