>Hello All,
>all the forms in my application use the default DE which is defined in code and loaded in the forms load event, all works fine. Recently I received a request to enable multiple instances of the same form, my first stab was to set the form to use a private data session, my problem is, on looking at the data session window with only one instance of the form running, there are three sessions in use, the default, one created by the form, and another created by my coded DE ( my coded DE class creates a session object ). How can I make the first form use the session created by my DE class without using the dreaded Set Datasession to?, any suggestions greatly appreciated
>
>regards
>
>Peter Kane
Pete,
You could set Session object to use default session (which is private session of form's). However why would you ever need a session object when form has private datasession and thus have its own session.
OTOH if you're running your forms with 'do form' it'd be better to use directly DE of form rather than coding in load (DE loading is faster).
Cetin