Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Practical limits on number of SET CLASSLIB TO's
Message
 
À
14/12/1999 20:03:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00303780
Message ID:
00303944
Vues:
22
Hi Mike,

>do you know about the NewObject() function and method? In VFP6, you can use this (instead of createobject() and addobject()), and you specify the classlib as a parameter so it doesn't have to be in memory.

But its slower, because it always loads the class library, even if it has already been loaded with SET CLASSLIB. And it doesn't work when the class library is included into an EXE or APP, but the object from which you are creating the object doesn't belong to that EXE/APP, eg. when you have you SCXs external from the EXE and you execute NEWOBJECT() from a form that has been launched by another form.

Christof
--
Christof
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform