Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

object "form name" is not found 1

Status
Not open for further replies.

randallJ

IS-IT--Management
Aug 15, 2000
90
GB
When using hide and show to mage 3 forms I get the intermittent error message object "form name" is not found. This usually occurs when I release a form and try and show the hidden form. Any ideas?
 
Are you invoking the forms using:
[tt] DO FORM MyForm NAME MyVarName[/tt] ?
If so, are you showing the hidden form my specifying:
[tt] MyVarName.Visible = .T. [/tt] ?
 
Robert,
Thanks for your reply. I am invoking the form using
DO FORM MyForm Name MyVarName, however I was using Myform.show to show the form. I have tried your suggestion but I am still getting the same error message. Any further ideas.????


 
Need more details to answer to you. Following are cases when such problem may occur:
1. You used local /private variables for form object reference. You put 'LINKED' into 'DO FORM' statement, so forms released when variables released.
2. Form is released really because some internal code. Before activating of form, check that it is exist. When it does not exist - run it again.
3. Form was modal. When you hide it (by any way), its modal state finished. Finishing modal state means running of code just after 'DO FORM' for that form. When you have clean-up code there, form is released.
 
RandallJ wrote:
I am invoking the form using DO FORM MyForm Name MyVarName, however I was using Myform.show to show the form

Try: MyVarName.Show
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top