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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.