Josh, Thanks.
I've been playing and it seems that the following are true:
CLOSE DATABASE will close table in the current session
RELEASING a session will close the tables in that session
DISPLAY STATUS will show you open tables in the current session
DISPLAY OBJECTS will show you sessions (and other objects)
Do I seem to have it correct?
My functions that want private data should simply save the session coming
in, create a new one, release the created session, and then restore the
saved one prior to returning. I don't need to close tables. Releasing the
session does it for me. Correct?
Also, my SET EXCLUSIVE and SET DELETED seem to be preserved across
datasessions created in code as you outlined so they do not need to be coded
again when a new session object is created. Is that correct?
Thanks again.
Jeff
"Josh Assing" <XjoshX@jassing.com> wrote in message
news:cvksj2teihmhvc5kirr1avc3gr197kkuvb@4ax.com...
> >Is there an easy way to do the same thing for a function?
>
> yes.
>
> it's called a (ready?) data session
>
>
> Here's how to do it in code.
>
> lnCurrentSession = SET("datasession")
> loSession=CREATEOBJECT("session")
> SET DATASESSION TO losession.DataSessionId
>
> * do your stuff here
>
> set datasession to lnCurrentSession
>
> * Back to where you were.
>
>
>
> --- AntiSpam/harvest ---
> Remove X's to send email to me.