Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Automatic Destroy method
Message
De
13/08/2007 04:40:58
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01246863
Message ID:
01247751
Vues:
29
>Hi everybody,
>
>If I'm creating an object as my form's property such as oBill, for example, I always start it with an 'o'. I'm thinking, is it possible to make a generic Destroy method to SET such objects to NULL instead of making changes to each form class where I'm creating such properties.
>
>I guess I can loop through aMembers for the form, check the first letter, etc.
>
>Do you think it's worth the trouble to make a generic Destroy method or it's better to continue the current practice of modifying each individual form's Destroy method?
>
>Appreciate your ideas.
>
>Thanks in advance.

Are you sure that set it to NULL is necessary?
This is necessary only if you have to destroy it before other objects.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform