Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CursorAdapter WITH xmlAdapter
Message
De
22/02/2006 12:45:33
 
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01097979
Message ID:
01098183
Vues:
14
Hi Enrique,

CursorAdapter is bound to the DataSession it is created in and it opens cursors in that DataSession.
CLEAR 
SET DATASESSION TO 1
CLOSE DATABASES all

CREATE CURSOR foo (f1 I)

oCA=CREATEOBJECT("CursorAdapter")
oCA.DataSourceType="NATIVE"
oCA.SelectCmd="select * from foo"
oCA.Alias="test"

LOCAL oSession as Session
oSession = NEWOBJECT('Session')
Set DataSession to (oSession.DataSessionId)

?oCA.CursorFill()
?SET("Datasession"), USED("test")
SET DATASESSION TO 1
?SET("Datasession"), USED("test")
Thanks,
Aleksey.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform