Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiple Data Sessions
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00316297
Message ID:
00316375
Views:
11
>>>>Hi Evan,
>>>>
>>>>Hmmm....this answer seems too simple, so it probably is :-)
>>>>
>>>>Have you looked into using Session objects?
>>>>
>>>>
>>>
>>>John,
>>>
>>>Is there any way to determine the sessions used by Session Objects?
>>
>>Not without a reference to the object, to check its DataSession property.
>
>Hiya Erik,
>
>If I recall correctly there's some documentation errata regarding the DataSession property. Even though the docs say that it can be the default DS, it always seems to be a private. I think what Fred was looking for what the DataSessionID property.

Well, sort of. I've just thought of a way to "simulate" a Sessions collection. If you add any session objects to _SCREEN, then you can at least spin through _SCREENS controls collection, checking for session types. Then you could use that session's SessionID to see what tables/etc. are open in that session. I still think a Sessions collection would be more useful.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform