Forum Discussion

MaheshIllur's avatar
MaheshIllur
Occasional Contributor
8 years ago
Solved

Unable to execute the "OnHide" event of the "Root_0AA8315E_7F1E_44C7_9CC8_9A3C7AF4B163" object

Hi Team.   We are making use of user form while execution but upon execution Testcomplete ends with below error- "Unable to execute the "OnHide" event of the "Root_0AA8315E_7F1E_44C7_9CC8_9A3C7AF4...
  • tristaanogre's avatar
    8 years ago

    What is "Root_blahblahblah"? Is that the name of your user form?  If so, basically, what this means is that your user form has a bit of code or test associated with the "OnHide" event named "AUT_OnHide".  The error message basically says that either the code "AUT_OnHide" could not be found OR it is expecting a certain number of parameters that you are not passing it.

     

    To see what's going on, open up the user form for editing.  In the right side of the screen, there's a list of properties.  If you have a component selected, you can get to the form properties by selecting [User form] from the drop down box.

     

    Once you do so, you should see two options, one like a lightning bolt.  Click that... this should bring up your list of event and event handlers on the form

     

    Whatever is in the box next to "OnHide", that's the script routine that is being attempted to run when your form is hidden, either by closing it or setting "Visible" to false or whatever.