Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Newobject()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00169346
Message ID:
00169575
Vues:
18
Hi Mark,

>If I use newobject('classname', 'classlib', 'appname') with appname.
>Shoud I set classlib to 'classlib' anyway?

It wouldn't help you anyway, since NewObject() bypasses any class library loaded with SET CLASSLIB in the entire class hierarchy. Just be aware of a few gotchas of NewObject():

- The class library must be in the path, because it's loaded from disk unless you instanciated already an object of the same class.

- If you have a class definition in a PRG file that is subclassed from a VCX class, you must load the PRG file with SET PROCEDURE TO and pass the name of the parent class library (!) to NewObject(), otherwise it won't find the VCX file, even if you loaded it with SET CLASSLIB before.

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

Click here to load this message in the networking platform