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