>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