Aaron,
If it's VFP6.0, you can use NewObject function, so you don't need to mess up with set classlib at all. Check NewObject function (and NewObject method) in the Help file. You may find them useful...
>When I try to create an object with the following code, the class definition cannot be found.
>
>*--Set the library and create the delete object
>SET CLASSLIB TO TrinAccountEvents IN trinity.app ADDITIVE
>loDelService = CREATEOBJECT("DeleteServiceEvent")
>
>I have ensured that my class is in the right library, and that the library is in the right app. Seems pretty cut and dried. What else could be going on here? Other libraries in the same app are used with no errors, but something is not right with this one.
If it's not broken, fix it until it is.
My Blog