Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating New Classes
Message
 
To
23/02/2000 13:13:31
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00336166
Message ID:
00336169
Views:
14
The code is carried over but you don't see it. When you then put your extra code in your new class, you include the DoDefault() command. This will climb the class heirarchy and do each level of the same method/event. If it then finds a method with code in it, it will run it. This code should also include a DoDefault() if there is code further up the heirarchy.

Confusing isn't it?


>I am new to the VFP environment and I am learning by trial and error. I do recall hearing that creating custom base classes was key in decreasing your development time with VFP. Therefore, I am trying to create my own custom classes. However, when I create a class based on an existing class which already has code contained within it, this code is not carried over to the new class. Is there a way to get around this (other than cut and paste)? I know the code will need to be modified, but it would still take less time I believe to make these changes than to start from scratch. Thank you in advance.
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Reply
Map
View

Click here to load this message in the networking platform