Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to release a form
Message
De
20/09/2009 12:33:06
 
 
À
20/09/2009 12:27:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01425336
Message ID:
01425345
Vues:
52
>>>Hi,
>>>
>>>I have a form and in one of the methods of this form I want to release this form (based on some condition). So I have code
>>>
>>>thisform.release()
>>>
>>>
>>>But the form is not released. The program goes to the next line after the thisform.release(). How do I release a form in a middle of any method of the form?
>>
>>Check the Form.Destroy event.
>>If it is fired, and form still live,
>>then you have a form's member dangling pointer.
>
>Do I need to put some code in the .Destroy even to see if it fires? Because without a code in this method I don't see a way to check if it fires.
>
>Thank you

On command windows:
ACTIVATE WINDOW "Debug Output"
SET EVENTLIST TO "Destroy"
SET EVENTTRACKING ON
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform