Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing a cursor from one datasession to another?
Message
 
 
To
22/02/2001 14:49:18
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00478575
Message ID:
00478598
Views:
17
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform