>>hi all,
>>
>>as you might know i'm busy on a project that usesFoxpro COM objects.
>>Until now i used the class definition DEFINE CLASS 'name' AS CUSTOM OLEPUBLIC
>>to declare in my DLL. Recently I saw an article from R. Strahl in which he uses
>>SESSION OLEPUBLIC instead.
>>
>>What is the purpose of this?
>>
>>Regards Erwin
>
>In addition to what George said, the Session object also has Private data sessions. Also, in VFP7, it has been enhanced to that it's native methods are not exposed to the public interface. Much better design this way.
In addition, the development-time advantage of using one of the visual classes like Line or Custom for COM object is that you can work with them in the Class Designer.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison