Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiple 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:
00316297
Message ID:
00316375
Vues:
10
>>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform