Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Define Class ... As ?
Message
 
 
To
17/05/2006 11:45:13
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01122798
Message ID:
01122943
Views:
15
This message has been marked as the solution to the initial question of the thread.
Chaim,

I'm pretty sure there is a fox.wikis.com article that shows the relative "weights" of each VFP baseclass. And unless you are instantiating thousands of objects at the same time it's a fairly irrelevant choice. If you need data session encapsulation use either Session or Form. If you want to use the class designer I recommend Container because you can build composite classes at design time where it's appropriate. If you are just using prg based classes it doesn't much matter, pick one for your lowest level class and derive everything else from it.

>I have to define a class in code. What is the most lightweight VFP base class to specify as the parent class? We used to use Line--is there a better option now?
>
>EXAMPLE:
>DEFINE CLASS MyClass AS Line
>... (more stuff here)
>ENDDEFINE
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform