Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to release a form
Message
 
 
À
20/09/2009 12:17:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01425336
Message ID:
01425343
Vues:
42
>>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
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform