Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Custom Release method
Message
From
22/09/2005 22:52:15
 
 
To
22/09/2005 11:56:00
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01052014
Message ID:
01052266
Views:
13
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform