Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determing number of Active Data Sessions
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00473236
Message ID:
00473238
Vues:
21
>I would like to know the number of active data sessions for looping through in an error handler. If using
>
>for lnDS = 1 to 10
> set datasession to lnDS
> (code to log table useage in each session)
>...
>endfor
>
>an error occurs when trying to set to invalid data sessions. To make matters worse, the error "Session Number is invalid" is one of the VFP errors that always displays, even when there are active error handlers or events. Any suggestions for knowing the number of sessions in advance, or not displaying the error is appreciated.

An ON ERROR handler can certanly trap error 1540 (Session Number is invalid).
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform