Hi Phillipe
>
>What is the exact "relation" between DataSession and DataEnvironment?
>
A dataEnvironment is a container for cursors and relationships in a Form. A DataSession is a "work area" completely independent of other datasessions insofar as what is opened and what relationships are defined.
>
>My question is: Does the form DataEnvironment exactly match its private DataSession? In other words, are the Data in the DE corresponding exactly to the data of the private datasession? If I switch the dataEnvironment at runtime in my form, will the DataSession remain the same or not? Have I got ONE DE for ONE Datasession and vice versa?
>
When a DE is instanced with a private datasession, a new datasession is created. If you instance a new DE at runtime it will instance a new datasession.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05