Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Release thisForm vs. thisForm.release()
Message
 
À
25/07/2004 22:22:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00927764
Message ID:
00927813
Vues:
28
When closed with myform.release, the form "closed" and vartype() returned "U". With release myform, the form remained and vartype() returned an "X" but did not call the forms release method.

>When the form closed with THISFORM.Release() did the form reference get changed to NULL?
>
>Also, that's good for the "regular" case, Terry.
>I wonder what the result might be when there is a dangling reference at play. My guess is that the form will close but the form object will remain.
>
>cheers
>
>
>>I created a little form (MyForm) and put messagebox([release]) in the release event and saved it. In the command window, I declared the form's name public and then "did" (do) the form (do form myform).
>>
>>In the command window RELEASE MyForm did not call the form' release method, but it did change ther vartype(myform) from "O" to "U". Myform.Release opened the message box and then the form closed. One calls the release method of the object and the other does not.
>>
>>
>>>Is there any difference between "release thisForm" and "thisForm.release()"?
>>>
>>>Thanks,
>>>Javier.
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform