Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Enumerating Data Sessions?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Enumerating Data Sessions?
Divers
Thread ID:
00660418
Message ID:
00660418
Vues:
41
I've found that when VFP6 errors out, it can leave datasessions and tables open. A CLOSE DATA will take care of any tables open in the CURRENT datasession, however, I wish to close ALL tables, regardless of what data session they are in.

It's not quite as simple as this, however:

For X = 1 to 255
Set Datasession To X
Close Data All
EndFor

Because VFP gives you a nice little error if the X datasession doesn't exist. Now of course I could simply trap for this error and ignore it, but that's not very elegant.

So, does anyone have an elegant solution for this problem? I would have thought there would be some Array command like AFIELDS, AUSED, ADATABASES, but I cannot find one for data sessions.

Thanks
Scott
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform