Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does VFP 9 have this feature?
Message
 
À
08/10/2004 18:03:12
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro Beta
Divers
Thread ID:
00949117
Message ID:
00950076
Vues:
23
>Not really. I can have a single .prg called thefunc.prg. I can DO THEFUNC or I can llSuccess = THEFUNC(). I don't have to SET PROCEDURE TO THEFUNC first.
>
>I always have to have SET CLASSLIB TO to access that single class. Further, if that class is subclassed, VFP must be doing a SET CLASSLIB TO the parent class. There is also the issue of opening different classlibs with aliases and basically having to manage the entire set of opened classlibs.
>


I think you can live without SET CLASSLIB TO (with VFP8 at least), just use NEWOBJECT() instead of CREATEOBJECT()

NEWOBJECT(cClassName [, cModule [, cInApplication[, eParameter1, eParameter2, ...]]])

Same with subclassing, DEFINE CLASS MyChild Class AS MyClass OF C:\CLASSES\MyClasses.VCX
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform