>i have a main form and have commnad buttons on that form that use, mainform.visible = .F., in the load
>event of the second form and the, mainform.visible = .T., in the unload event of the form. this works find if
>im working in the project, but once i compile the project and try to run this i get the message ,
>"object mainform is not found". i cant understand it since it works when im testing it but doesnt work
>from within the .exe file. i've checked syntax and recompiled the project to no avail.
>help
>thanks
Frank,
Tnis is a common error, you are assuming that the name of your form is MainFrom and it very wellmay not be. Instead in the button of the Mainform do this;
Thisform.Visible = .f.
DO FORM Whatever
Thisform.Visible = .T.
You must make sure that the forms you call are modal.