Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Session class
Message
 
À
02/09/1999 22:10:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00260973
Message ID:
00261097
Vues:
23
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform