Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot close modal form
Message
De
27/09/2001 12:59:40
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00561398
Message ID:
00561543
Vues:
24
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform