Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Coded DE Class and forms
Message
From
22/05/2002 06:58:08
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00659793
Message ID:
00659808
Views:
27
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform