Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Moving between datasessions
Message
De
11/01/2008 16:49:58
 
 
À
11/01/2008 14:55:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01281189
Message ID:
01281267
Vues:
14
>So............Is there a simple way to copy a cursor from one datasession to another?
>
>You could create an invisible form with a private datasession and use CURSORTOXML to create an XML file that you could pass to the form's INIT() and them use XMLTOCURSOR() to re-constitute the cursor inside the invisible form.

Thanks for this idea.
What I wound up doing is
lnCurSessionId = this.DataSessionId 
LOCAL oTempDS
oTempDS = CREATEOBJECT("session")
SET DATASESSION TO oTempDS.datasessionid
.
.
=CURSORTOXML("myCursor","lcCurData")
otempDS = .null.
SET DATASESSION TO lnCurSessionId
=XMLTOCURSOR(lcCurData,"myCursor")
RETURN "myCursor"    && function is designed to return name of cursor it created
Any suggestions for improvement are welcome

.....Rich
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform