Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to release a form
Message
De
20/09/2009 12:41:32
 
 
À
20/09/2009 12:37:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01425336
Message ID:
01425349
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.
>
>Fabio,
>
>I think the form's Destroy() only fires after all the code of the methods has been executed
>
>
>&& form Command.Click
>=m.thisform.Release()
>
>acti screen
>?'ppppppppppppp'
>
>&& form Destroy()
>acti screen
>?'destroy'
>return DoDefault()
>
>&& output after click
>
>ppppppppppppp
>destroy
>
Of course!
The method where thisform.Release is called is itself a form dangling pointer.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform