Why not use a small form with the code in the INIT (or called from the INIT) method. If you return a FALSE after your PRG runs, then the form will never show on the screen, but you can set the datasession to Private and have all the other form options available.
HTH
Barbara
>Hi,
> I have a class that uses/updates tables. In the code it doesn't make any assumptions about the data session it is in. That means if the class is part of a form with private data session, then the class table operations r scoped to the private data session. My question is, if the class object is created in a program and the program is launched from a menu option(i.e. there is no form launched), what is the context of data session here? In this case, Is there any way for the program to create its own private data session?
>
>If there exist a way of creating private data session, how to set buffering mode for the data session?
>
>I appreciate ur help.
>
>Thanks
>Puri