Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Define Class ... As ?
Message
 
 
À
17/05/2006 11:45:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Database:
Visual FoxPro
Divers
Thread ID:
01122798
Message ID:
01122943
Vues:
17
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform