>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only