Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DEFINE CLASS x AS y FROM My.PRG
Message
From
10/10/2000 11:35:06
 
 
To
09/10/2000 11:01:21
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, United States
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00426810
Message ID:
00427324
Views:
13
>However, with PRG based classes the only way we can specify a parent class is to SET PROCEDURE TO ParentClass.PRG. Why can't we have syntax that allows the PRG based Class to know where to look for its parent? Example:
>Test102.PRG
>DEFINE CLASS Concrete AS Abstract FROM Test101.PRG
> PROCEDURE SomethingElse(x)
> ENDPROC
>ENDDEFINE
>What I'm proposing is that PRG based classes work exactly like VCX based ones. Each class definition needs to know where its parents are.

It's in VFP 7. You can do it this way.

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform