Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Visual Basic 6.0 ADO & Visual Foxpro Tables
Message
From
27/10/2004 05:13:26
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
26/10/2004 19:18:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows 2000
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00954731
Message ID:
00954797
Views:
15
>Hi All,
>
>Let me first start by stating that I'm a Foxpro person through and through... love the product... always will.
>
>I'm employed with a small shop that has applications written in Visual Basic 6.0 accessing an Access Databases. Problem being that database is too slow and can't handle a larger number of records. I suggested using Visual Foxpro as the Database. Actually stuck my neck out a bit on this one.
>
>We've encountered numerous problems with ADO and Visual Foxpro Tables. Where can I get some examples of Using.... sorry to say Visual Basic using ADO accessing and updating Visual Foxpro 7.0 Database Container and it's tables.
>I'm hoping we can write Visual Foxpro & Visual Basic Applications that access the same Database being Visual Foxpro.
>
>thanks in advance,
>
>Don

Hey Don,
Nothing to be sorry about. I more and more use C#.NET (with or w/o conjunction to VFP) and what, am I a traitor:)
ADO access to VFP using either VFPOLEDB (preferred) or MSDASQL is straight forward. Is there anything specific you're asking?
A simple code updating employee (will write VFP style naturally, I can't dim:)
oConn = createobject('ADODB.Connection')
oConn.ConnectionString = "Provider=VFPOLEDB;Data Source=c:\myPath\TestData.dbc"
oConn.Open
oConn.Execute('set null off')
oRS = oConn.Execute("insert into employee (emp_id,First_name,Last_Name)"+;
     " values ('xxx','Don','Weaver')")
oConn.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
Next
Reply
Map
View

Click here to load this message in the networking platform