Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing Method code at Instance Level
Message
From
30/03/1998 07:47:17
Steve Camsell
Windmill Associates
Bath, United Kingdom
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00088041
Message ID:
00088048
Views:
27
>Steve,
>
>I think Ian's right that you can't modify methods at run-time. If subclassing the class is not practical, you may want to consider passing the object a parameter when you instatiate it. Use the parameter to determine the appropriate behavior.
>
This isn't actually for myself, but for a colleage. However, it has interested me so much, that I really want to find out exactly what is going on. My understanding was that instance of the class was created. I guess I hadn't REALLY thought about what an instance was. It would seem that an instance is simply a temporary subclass of the object. The name of the class (as in DEFINE CLASS ClassName AS ParentClass) being the name property of the "instance" on the form.

Would you agree with this?
Steve Camsell
Development Consultant
Steve.Camsell@Windmill-DBM.Co.Uk
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform