problems using *.dbf and *.cdx (FoxPro / C#)

D

Daniel Weinand

hi,
i'm trying to use *.dbf, *.cdx files with in c# app.
works fine. i can change, add, delete data within the *.dbf file.
but the cdx file isn't updated. i'm using in the following way:

private void Form1_Load(object sender, System.EventArgs e)
{
String conString =
@"Provider=vfpoledb.1;Data Source=C:\CL5\DA\_workdir\DATEN;Collating Sequence=general";
conDBase = new OleDbConnection(conString);

//String conString =
//@"Provider=Microsoft.Jet.OLEDB.4.0;DData Source=C:\CL5\DA\_workdir\DATEN\;Extended
//Properties=dBASE IV;";

}

using the dbf file works with both connection strings.
what ill have to do to get the cdx file updated accordingly?

the file must be updated cause a xbase++ app is reading the dbf and cdx after my changes.
but without an adapted cdx my changes will not be displayed in the xbase app.
F'up2: microsoft.public.fox.helpwanted
X'Posted to: microsoft.public.fox.helpwanted,microsoft.public.dotnet.framework.adonet,microsoft.public.dotnet.languages.csharp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top