Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
McNeish Book and sample data access?
Message
 
 
À
11/09/2004 02:09:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Divers
Thread ID:
00941275
Message ID:
00941276
Vues:
15
>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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform