dBASE index error

I have a Delphi 1 app which loads data from dbf files and then
saves it to a interbase DB, most of the time this works fine.
However some of the time I get an error with the index when I
try to open the dbf, this can be fixed by reindexing the file
in dBASE.

I would like to not use dBASE in the convertion process
and reindex/fix-index from within my Delphi App.

Can anyone help me.

Thank
Adam

PS. Please email me any responses