Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running code in a different session
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Running code in a different session
Divers
Thread ID:
00976711
Message ID:
00976711
Vues:
35
Hi all,
I have a form with a private data session. A button has to perform an action that requires a number of tables to be opened then closed. I don't want these tables to interfere with the existing datasession so I thought I could use the session object to keep the tables separate.

This works fine except that the form appear to change datasession causing a couple of grids to become unbound.

Could someone point out were I am going wrong.
lnSessionID = ThisForm.DataSessionId
loSession = CreateObject("Session")
Set Datasession To loSession.DataSessionId
DO PrepairToOpenExhibition with lcDBF, lcTitle
Close Tables all
Set Datasession To lnSessionID
loSession = .NULL.
Many thanks
Caroline
Caroline
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform