>I am using a form with private datasession.
>The form do not have any tables open. In the Load Event I open the tables.
>
>In the Init() of the form I want to use the table but the DataSessionID is set to 1.
>
>If I suspend the excution in the init() I can see the DataSession # 4 created for my form but the DataSessionID is not set to 4.
>
>Any one know when the DataSession is set to my privated datasession?
There are two different properties: DataSession and DataSessionId. The two are related.
When you set DataSession = 2, the form uses a private DataSession.
DataSessionId is only set at runtime: each form is assigned a unique DataSessionId.
You can "link" from one form to another by sharing the DataSessionId, but I understand this should usually be avoided.
Regards, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)