
How to read/write dBase dbf/ndx files?
Hi,
DBaseIII is supported by VB 6 (the evidence is the data control). The
problem is that with DBIII there was no link to the index (if I remember
correctly DBIV's MDX and Clipper's CDXs were reference in the DBFs header).
For each DBIII dbf there must be an INF file (e.g. DBASEIII.dbf must have a
DBASEIII.inf). The inf file is a text file that lists the indexes for that
file, e.g.
[Dbase III]
NDX1=JobNo.NDX
NDX2=Desc.NDX
Can I assume that as you got to trying to using the indexes that you have
managed to open the "database", and your "table"? The next step would be to
set the recordset's index
rst.index=cIndex
rst.index="Descr"
I hope this helps.
Regards
Andy U.
Quote:
> Thanks for the suggestion, but their current version doesn't list support
> for NDX files (which I think are dBase III indexes). It only lists
support
> for Clipper NTX files and dBase IV MTX files.
> Were NDX supported in a previous version?
> Thanks,
> Bryan
> > http://www.datadirect-technologies.com/
> > > Can anyone recommend a technique or component I can use to read/write
> > dbase
> > > dbf & ndx files? The main problem is the ndx file. DBF files are
easy
> > > enough, but I can't find anything that can handle the NDX (index)
files
> > from
> > > dBase III. I have Codebase, but they do not support NDX files in the
> 6.x
> > > versions.
> > > Thanks,
> > > Bryan