Hans,
What is the base class of your object that contains the functions. If it's based on the session class, then that would be the reason. Otherwise, the object should use whatever datasession is currently active.
>Hello,
>
>I have an object that contains serveral functions. One of them does an update of serveral fields of a table.
>I use that function from within a form. This form uses a private datasession.
>My problem now is that when I call the function, my data environment goes to the default datasession so that my function doesn't find the tables I have opened in my private datasession. Is there a way to tell my function (object) not to use the default datasession but the private datasession of the form (without using "set datasession to") ??
>
>
>Greetings,
>
>Hans
Daniel