Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET CLASSLIB versus SET DEFAULT
Message
From
20/05/2011 12:03:00
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01511158
Message ID:
01511288
Views:
46
>I've never noticed a problem before, but in some coding I've done with CursorAdapter, I cannot get:
>
>SET CLASSLIB TO C:\DEV\CA_TEST\CLASSES\TESTS.VCX
>
>to work properly. According to FoxPro help, I should be able to instantiate a class from the above class library, but if it isn't in the DEFAULT folder (SET DEFAULT TO or DEFAULT="XXXX"), set in my CONFIG.FPW file, to C:\DEV\CA_TEST, then it won't instantiate and gives me an error, such as:
>
>"File c:\dev\ca_test\tests.vcx does not exist"
>
>So, I placed the class library in the DEFAULT folder and of course, it instantiated just fine. I tried another way by setting the DEFAULT:
>
>SET DEFAULT TO c:\dev\ca_test\classes
>
>and then was also able to instantiate the object.
>
>All thsi time, the class library was sitting in the c:\dev|ca_test\classes folder.
>
>Why isn't the path given in the SET CLASSLIB command enough for FoxPro to find the class library?

Grasping at straws here:
* Perhaps you've got another SET CLASSLIB statement excecuted later on that doesn't use the ADDITIVE clause (closing any classlibs you've previously opened) ? (though if that's the error message you got, it would indicate that it did know know where to open the classlib)
* Are you sure you've got all necessary parts of the classlib in that directory (i.e. both the VCX and VCT have to be present) ?
Previous
Reply
Map
View

Click here to load this message in the networking platform