Jeg fandt dette eksempel på nettet. Her bruges OleDB.
/// 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";
OleDbCommand Command = new OleDbCommand(SelectCmd, Connection);
OleDbDataReader Reader = Command.ExecuteReader();
// Get the next record in the result set
string Employees = "";
while (Reader.Read())
{
// Access the data in the current row
Employees += Reader.GetString(0) + ", " +
Reader.GetString(1) + " - " + Reader.GetString(2) + "\n";
}
MessageBox.Show(Employees, "Data Reader Demo");
Reader.Close();
Connection.Close();
Jeg ved ikke om du kan bruge det til noget. Her kommer et link til den fulde artikkel:
http://foxcentral.net/microsoft/NETforVFPDevelopers_Chapter07.htm