Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameterised access to VFP data
Message
From
20/07/2001 13:41:12
 
 
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
00532408
Message ID:
00533270
Views:
12
Hi Anna,

>>I assume what you are saying is that I need to use the ADOCommand class and create a DataReader rather than a Dataset ?

Well, I'm no pro with ADO and I understand the term to be RecordSet rather than DataSet, but the something like the following should work.

DIM oConn AS ADODB.Connection
SET oConn AS New ADODB.Connection
oConn.ConnectionString = "Provider=VFPOLEDB;DataSource=FULLPATH(MyData.DBC)"
oConn.Open

DIM oRS AS ADODB.RecordSet
SET oRS AS New ADODB.RecordSet
oRS.ActiveConnection = oConn
oRS.Open("Select * From Customer where CustID = ")

HTH
Pamela
Previous
Reply
Map
View

Click here to load this message in the networking platform