Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I create a new VCX of subclasses programatically
Message
From
09/10/1998 13:27:17
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00142974
Message ID:
00145481
Views:
55
>Fred,
>
>The class that defines a property/method sets a couple of the reserved memo field indicating the name, type and scope. The subclasses of that class only inherit it, they don't have their own copies of that information. So when you delete the property/method from the class the subclasses just lose it. And you might not notice it because VFP would just create a private memvar for the missing property if the subclass overrode the value. It would error out though the first time you tried to access/set this.TheDeletedProperty.
>
>>I'm not sure I see the difference between changing the default value of an existing property and adding a new property with it's own value. They both show up in the VCX in the Properties field. How does it distinguish between the two?

Thanks, David. I hadn't noticed that there were reserved memo field entries for those properties. And you're correct, there is no error until you actually try to access the deleted property in a method.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform