Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Custom Release method
Message
De
22/09/2005 22:52:15
 
 
À
22/09/2005 11:56:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01052014
Message ID:
01052266
Vues:
14
You may, one day, get into trouble if VFP ever has a native event of the same name. We had a .refresh() method in our label classes before VFP introduced it as a native event. When it did come in we had dreadful problems with our classes and had to do quite a bit of work to fix it.
Since then we try to use names for methods and events that they (MSFT) are unlikely to use themselves.
Since VFP 9 is probably the last, you should be safe though :-)

We added a
>I have an object based on Custom class. I have added a .Release method, which contains Release This (after checking for dangling references and so on). So basically the method releases the object it belongs.
>
>As far as I can tell, it works good, but however, I'd rather ask: I am asking for trouble with this approach?
>
>Thank you.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform