Hi John,
I believe that's the behavior. If you create an Form.oSession property you can then do ThisForm.oSession = CREATEOBJECT("SessionClass"), however the form won't be able to see any data that's in the session, (of course, that's the point :-)) This is the way containers, like forms, work.
>Hi,
> I am developing a class base on session base class. I set my form's and it's datasession to 2. I add it to a form while form.init(). I found that, tables used in session object share the same datasession with my form. Is it my mistake or VFP behaviour?
>
>Thank you
Charlie