Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ghost from the SQLExec()
Message
From
03/03/2006 20:17:14
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01101438
Message ID:
01101455
Views:
12
With the following approach, by using CursorAdapter() as you suggested, I am able to achieve the same:
LOCAL loConnection,loCommand,loCursor
loConnection=CREATEOBJECT('ADODB.Connection')
loConnection.Open("Provider=VFPOLEDB.1;Data Source=d:\;Mode=ReadWrite;Password='';Collating Sequence=MACHINE")
loCommand=CREATEOBJECT('ADODB.Command')
loCursor=CREATEOBJECT('CursorAdapter')
loCursor.Alias='Temp'
loCursor.DataSourceType = 'ADO'
loCursor.DataSource = CREATEOBJECT('ADODB.RecordSet')
loCursor.SelectCmd='SELECT * FROM Event'
loCursor.DataSource.ActiveConnection=loConnection
loCommand.ActiveConnection=loConnection
loCursor.CursorFill(.F.,.F.,0,loCommand)
BROWSE
Thanks, I will update my Data Provider class to use this approach.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform