Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it possible to return a cursor from a method?
Message
De
05/10/2003 06:43:10
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00835121
Message ID:
00835207
Vues:
7
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform