Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is it possible to return a cursor from a method?
Message
From
05/10/2003 06:43:10
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00835121
Message ID:
00835207
Views:
6
Hi Eric

>I want to call a method (that is in another datasession) and to get back a cursor from it.
>Is it possible with vfp8 ?

Not directly. After all, the whole point of private datasessions is to ensure the separation of data.

Basically you need to convert the cursor into some transportable format (e.g. XML, or an ASCII text file) and use it to re-create the cursor in the required datasession.

You don't describe your exact situation, but you may also be able to use an array (providing the data set is not too large). Remember, you can use SELECT xxxx INTO ARRAY to create the array, and CREATE CURSOR xxx FROM ARRAY to re-create the cursor.
----
Regards
Andy Kramek
Previous
Reply
Map
View

Click here to load this message in the networking platform