>>>Hello all.
>>>
>>>I been do foxpro for years now and I just discover something.
>>>I never knew "CLOSE ALL" statement affects "SET CLASSLIB..." statement.
>>>
>>>Is this true?
>>
>>No.
>
>
>LOL.
>
>Ok then how come the following code after CLOSE ALL, my app. looses its classlib?
>
>ox=createobject("MyClass")
>boom - "MyClass" not found.....
>
>*********************************
>set classlib to MyLib.vcx
>close all
>*********************************
>
>
>But if I do this....
>*********************************
>set classlib to MyLib.vcx
>close data all
>*********************************
>
>I'm ok....
>
>huh, huh ?.... ;)
You're right. I saw CLEAR ALL, not CLOSE ALL. CLOSE ALL definitely clears the SET CLASSLIB all the way back to at least VFP6.