Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ghost from the SQLExec()
Message
De
03/03/2006 20:17:14
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01101438
Message ID:
01101455
Vues:
11
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform