>If i create a cursor when i start my program, that cursor creates in the default data session (1). The i opened a form with private datesassion and now the active datasession is (2). When i refer to my table as mytableinsession1.field=xx the system tells me that this table doesn't exist. If i change the datasession with Set Datasession to 1, I loose the bound in the controls bouding to datasession 2 tables.
Usually, the need to use SET DATASESSION points to a design deficiency. If you are using private datasessions, and need a value from a table in another datasession, that value should have been passed with a parameter, or should be retrieved by an object that lives in that table's datasession. Otherwise, why are the datasessions private?
Erik Moore
Clientelligence