Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
McNeish Book and sample data access?
Message
 
 
To
11/09/2004 02:09:07
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
00941275
Message ID:
00941276
Views:
13
>Purchased .NET for VFP Developers by Kevin McNeish there is sample code for
>Using vfp data in .net
>
>Trying to place code behind a button
>
>
>/// Build the connection string
>string ConnectionString = "Provider=vfpoledb.1;Data Source=samples.dbc";
>/// Create the connection
>OleDbConnection Connection = new OleDbConnection(ConnectionString);
>/// Open the connection, access the data and close the connection
>Connection.Open();
>string SelectCmd = "SELECT TOP 3 LastName, FirstName, Title FROM Employees
>ORDER BY employeeid";
>
>
>Does the Source=samples.dbc require a actual path?

Yes.

>Does this dbc have to be set up in the solution explorer first?

No.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform