I'm pretty sure that you can't hide a modal form without killing it. If you want to return values from the modal form, work the other way around. Make your modal form write the values to the calling form by passing the form object in parameter.
oForm = CreateObject("MyForm", THISFORM)
MyForm.Init()
LPARAMETERS oForm
THIS.oForm = oForm
MyForm.Unload()
THIS.oForm.Property1 = SomeValue
HTH
>I have a form class (modal). I used the following commands. On a commandbutton's click method, I just hide the form.
>oform= createobject('myform')
>oform.show
>oform.release
>
>my problem is when the control reaches oform.release it says, oform does not exist, I also want to get some values returned from the class properties. The unload event seems to kill my variables.
>
>How can I overcome this?
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only