>>>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.
True, but since you did not have that clause in your original question, I made the assumption this was the only class lib you needed open.
Mark McCasland
Midlothian, TX USA