Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot close modal form
Message
From
27/09/2001 12:59:40
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00561398
Message ID:
00561543
Views:
23
>Hi,
>
>I have a modal form that is opened by the main program. The form works fine except that I cannot close it.
>
>The form has an exit button with the following code:
>
>ThisForm.Release()
>
>
>I've released all the object references that refers to the form so I don't know what's keeping it open. I've even placed a 'set step on' command in the form release to see what it happening but it never gets there.
>
>Any help on this is greatly appreciated.
>
>TIA,
>Arriyel

Arriyel,

Do you have any thisForm.newbject() calls anywhere in the form, or in any of its objects? I have seen cases where in the destroy method:
thisform.removeobject("myObject")
Where "myobject" is the name of the object added with the newobject() call. This will allow the form to release. Also, if a form is "stuck" open because of this reason, from the command window you can:
_screen.activeform.removeobject("myObject")
I have yet to figure out why this happens in some cases of newobject() but not in others.

HTH,
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform