Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Newobject()
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00169346
Message ID:
00169575
Views:
16
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
Previous
Reply
Map
View

Click here to load this message in the networking platform