Hi!
There is new Session class in the VFP SP3. Try it. When you create instance of that class, use DataSessionID property of it to switch to new data session using SET DATASESSION command. To destroy data session just destroy object of Session class. More, any object created in the code of Session class will automatically work in that new data session.
HTH.
>I need to create a private data session in code. We have a program module that opens all the tables and then does a lot of up front work and before running a form. I just found out that you can only open a new data session from within a form. At least that is all I can find. Is this right?
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.