basser
basser

Reputation: 66

How to change a .dbf file AND its associated .mdx file with Python?

I want to delete some rows of a .dbf file. It's clear for me how to do this with Python for example with the dbf-module. However, the .dbf file has an index .mdx file associated with it. If I change the .dbf file, how can I change its associated .mdx file accordingly? Is this functionality supported by the .dbf module? If not, how can I do this?

Thanks in advance.

Upvotes: 1

Views: 616

Answers (1)

Ethan Furman
Ethan Furman

Reputation: 69288

The dbf* library in question does not support index files of any type. If you have access to the original program you could use it to rebuild the indices after you modify the .dbf file itself.


*Disclosure: I am the author of the dbf library.

Upvotes: 2

Related Questions