Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DBUSED(lcName) returns .F. but cannot OPEN DATABASE (lcN
Message
From
22/11/2000 18:39:25
 
 
To
22/11/2000 18:00:04
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00444781
Message ID:
00444840
Views:
7
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform