Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to convert a visual foxpo cursor to ADo recordset
Message
From
28/06/2006 17:52:04
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
28/06/2006 14:54:31
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01132539
Message ID:
01132593
Views:
20
>How can i convert a visual foxpo (cursor to ADO) recordset without VFPCOM driver utility.

You can use ADO directly. ie:
Local loCon As ADODB.Connection
loCon = Createobject("ADODB.Connection")
loCon.ConnectionString = "Provider=VFPOLEDB;"+;
  "Data source=c:\program files\microsoft visual foxpro 9\samples\data\testdata.dbc"
loCon.Open
loRS = loCon.Execute("select * from customer")
? loRS.Fields(0).Name,loRS.Fields(1).Name
Do While !loRS.Eof
  ? loRS.Fields(0).Value,loRS.Fields(1).Value
  loRS.MoveNext
Enddo
loRS.Close
loCon.Close
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform