Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sub-Classing a PRG-based Class
Message
From
27/05/2002 17:35:31
 
 
To
27/05/2002 16:26:56
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00661784
Message ID:
00661795
Views:
18
>What's the best way to sub-class a PRG based class?
>
>I presume that I can "#INCLUDE < parent.prg >" in each sub-class.prg (so I get the inheritance), but then how do I get the sub-class.prg to re-compile when I edit the parent.prg?
>
>Specifically, if I create a class based on the SESSION object, how can I then sub-class it to get all the inheritance from the main class?

I just discovered that I CAN'T "#INCLUDE < parent.prg >" in a sub-class.prg because only #DEFINE statements are recognized in a #INCLUDEd file.

Is there some way to get a PRG-based class into SET CLASSLIB?
Bill Morris
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform