Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CursorAdapter WITH xmlAdapter
Message
From
22/02/2006 12:45:33
 
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01097979
Message ID:
01098183
Views:
15
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform