Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing a cursor from one datasession to another?
Message
 
 
À
22/02/2001 14:49:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00478575
Message ID:
00478598
Vues:
16
>Is it possible to pass a cursor from a datasession to another?
>
>For example, I have a Form whith a private datasession that creates a cursor and I would like this cursor to be available to all my other forms. Is this possible?
>
>Thanks a lot in advance, Stephane.

Stephane,
The simple answer is no.

There is a "barrier" that VFP puts up between its datasessions that ordinary xBase calls can't cross. What you can do is have objects that exist in the various datasessions and communicate with one another. From one form, you could make a call to the another form (or one of its objects) and have it query the cursor in question and pass that information back. If only one record is needed, you could pass the information back very easily using SCATTER NAME. If more than one reocrd is needed, you could use ADO, XML or a simple array property of a parameter object.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

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

Click here to load this message in the networking platform