Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Private Datasession Two or More Forms - Close First Form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00222633
Message ID:
00222926
Vues:
18
I don't understand why you're using datasessions like that...

This is how I use data sessions:

1. Only report printing utilties use the default datasession
2. Every independent form/formset uses it's own private datasession.
3. The only time I use a datasession from another form is in dependent, modal forms. (i.e. the the senior form can't be closed without the dependent form being closed.
4. If I need to keep pointer locations consistent between forms, then I log the current primary key(s) from the parent table(s) as property(s) of the main application object and then put a seek in the activate method.

Although I like the counter idea proposed in another response, I think that your situation requires that each form use it's own private datasession. (I'd also defer to Arnon's suggestion to use the session object, although I haven't used it yet).

HTH
I try to stay online, to get better information.
I try to get away from the office once in a while..
But they KEEP... PULLING.. ME.. BACK.. IN!!!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform