>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