Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Private Session Parent - Default Session Child Help Need
Message
 
À
16/12/1999 09:57:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00304650
Message ID:
00304795
Vues:
27
Bob,

Give your form class a property for OldDataSession. Then in your child form you can do this in the Init;
LPARAMETERS WhateverYouAlreadyHave, pnDataSession
Thisform.OldDataSession = Thisform.DataSessionID
SET DATASESSION TO pnDataSession
...
In the child form's Destroy put this code;
LOCAL lnDS
lcDS = ALLTRIM(STR(Thisform.OldDataSession))
SET DATASESSION TO &lnDS
The orphaned data sessions result NOT from using set datasession but from NOT reseting the data session when you are done.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform