Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Classlib going null on SETCLASSLIB
Message
From
25/04/2001 16:16:16
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00499820
Message ID:
00499828
Views:
32
>>I'm issuing SET CLASSLIB TO MyClassLib in the 'main' program of an app in VFP6. This main program can be re-executed by the user if they need to log in again. The first time executing, all is fine, but when the SET CLASSLIB TO executes a second time, the CLASSLIB winds up being set to null! I cannot duplicate this behaviour from the command line. Does anyone know why this might happen?
>>
>>-Arne
>
>test to see if the classlib is set first. If not then open it:
>if NOT "MYCLASSLIB.VCX" $set('classlib')
> set classlib to myclass
>endif

Thanks Mark. I had already put something like that in as a work-around but I was trying to figure out *why* this was happening. BTW, your second line should have read SET CLASSLIB TO MyClassLib ADDITIVE if the assumption was that there were probably other classes in use.

-Arne
arne@synercom-edi.com "There are no absolutes but this one."
President, synercom/edi - Event Ticketing Solutions
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform