Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET CLASSLIB versus SET DEFAULT
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01511158
Message ID:
01511160
Views:
47
>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?

Are you sure this directory is not read-only? Can you double check everything, it seems to be it should work just fine with specifying the full path.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform