Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DBUSED(lcName) returns .F. but cannot OPEN DATABASE (lcN
Message
De
22/11/2000 18:39:25
 
 
À
22/11/2000 18:00:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00444781
Message ID:
00444840
Vues:
15
>Loop through all open datasessions - to easily find the highest open datasession, create a session object and get it's datasessionid. Start from 1 less e.g.
oSession = Createobject("session")
>lnDSHigh = oSession.DataSessionID-1
>For ji = lnDSHigh To 1 Step -1
>  Set Datasession To (ji)
>   If Used("pl")
>     Use in pl
>   Endif
>EndFor
You might want to put some error checking on the SET DATASESSION.
>


You know, that way to get the highest open datasessionid is great.

I forget exactly how it went, but while creating biz objects I needed to know the session id of the last form and couldn't do it, so I ended up using datasession 2 several times. With this I'll review that problem again.

Alex
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform