Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Thisform.Release() does not release the form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00129697
Message ID:
00129884
Vues:
22
>I have a form class that does most of my seek, look, add and edit work. I am calling a form based on it but with a parameter of ADD to only add one record. I set a flag in the init and then after the use has saved or canceled I check the flag do thisform.release(). The release() is getting hit but it does nothing. The code continues to run as though it was not there. Is this because I am trying to exit in the middle of a method?
>
>Thanks in advance.
>John.

A coupla things to check:

1. Are you executing a NODEFAULT while in the release method of the form. If so, the default behavior of releasing the form will not occur

2. Try putting the following at the top of your release() method:
RELEASE this

3. Do you need to call up the hierarchy to code that knows how to release object references on your form that are holding the form from destroying?
Rick Hodder
MCP Visual Foxpro
C#, VB.NET Developer
Independent Consultant
www.RickHodder.com
MyBlog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform