Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Session class
Message
 
To
02/09/1999 22:10:44
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00260973
Message ID:
00261097
Views:
24
>Hi folks ----
>
>Anyone done anything neat and exciting and unique with the new Session baseclass? I'm looking at a situation where I might want to use it but it'd be nice to hear some "war" stories.

Hi Gonz,

No "war" stories, but I thought I'd share with you the outline of what I've "played" with. Basically, it goes like this:

The Session class has two custom properties, oDE and oForm.

oDE holds a reference to a customized DE that's created by a code generator from a form.

The oForm holds a reference to a form.

In short this wraps both the form and its dataenvironment and provides the serves required.

The neat thing (I think), however, is that there's an oForm_Assign event. When the user closes the form, this event will be triggered. This signals the Session, that it's time to shut down, so it closes the tables, destroys the custom DE, and then itself.

I've tested all of the above and it seems to work fine. However, I haven't had a chance yet to put it into production, so there still may be some issues that need resolving.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform