Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What datasessions are open?
Message
De
09/12/2004 16:45:06
Alan Harris-Reid
Baseline Data Services
Devon, Royaume Uni
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
What datasessions are open?
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
00968147
Message ID:
00968147
Vues:
42
I need to check if a particular table is opened in a previously-opened form which has a different datasession from the current form. In VFP7/8 I can use ASESSIONS(laMyArray), but until I can persuade the client to upgrade, I am stuck with VFP6.

Using AUSED(laMyArray,lnDataSession) in a FOR/ENDFOR loop, I can determine the tables open in a particular datasession, but
a) I don't know when to stop checking datasessions (15 should be enough, but guessing is not very 'neat'),
b) If the datasession does not exist, the error "Session number is invalid" occurs.

How can I check if a datasession exists or not?

Any help would be appreciated.

Alan
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform