Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Two Datasessions
Message
 
 
À
26/07/2000 16:59:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00397323
Message ID:
00397334
Vues:
9
>I have a few questions...
>One...
>
>Can you open a second datasession programmatically? If you can please point me in the right direction.

Yes. You have to have at least SP3 for VFP and create a Session object. This will give you the new datasession.
Ex.
oSession = createobject("Session")
set datasession to osessio.datasessionID
< open my tables here >

Or you can create a subclass of the session object and create methods to open your tables and perform whatever operations you need.

>
>Two...
>
>If you can, and you open a table that is already open in the first datasession. Will the updates from datasession two be seen real time or only after the table in the second datasession closes or not at all?
>

See SET REFRESH in the help. Or you can always issue an Rlock() in the second datasession to refresh to buffer and unlock it immediately.

>Thank You
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform