Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot close modal form
Message
 
To
27/09/2001 12:59:40
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00561398
Message ID:
00561551
Views:
29
Hi Steve,

None here. This form used to be a modeless form before we started the latest version of the app. We had to recreate the form almost from scratch since the logic has changed in the data access part (SQL back end from FoxPro DBC).

Could it be that it doesn't have any active input fields? I have a logon form that works fine and and entity form that does also. They both have active/enabled input fields.

HTH,
Arriyel

>>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,
Speak using soft and sweet words in case you have to eat them later.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform