
reindex and pack procedures for using dbase files in Visual Basic
Quote:
>Does anybody know how or where I can get a hold of some code or 3rd
party tool that
>can do a pack and reindex of .DBF's.
It isn't that hard to do. Copy the DBF to a temp file, delete the
original and any indexes, create (or copy) an empty DBF file with the
same structure into the old files place - complete with indexes, copy
the records from the temp file to the new file (with the old name) -
which takes care of the indexes, kill the temp file and you are done.
I understand that dBase actually does something very similar to pack
their databases.
Steven