Open vesnikos opened 7 years ago
The rows are read in the order they appear in the file so they will not be sorted in any way.
That's interesting, so if I want to access the rowid, how would I be able to do that?
There's no direct way to do it. dbfread is designed for getting all of the data out of a file for processing somewhere else so there's no way to get a single record by row ID.
Do you think you could update the docs to be a little more clear on the subject? I figured that would be the case, as it wasn't specifically saying anything about it, but I didn't see anything in the docs to confirm it
That's a good point. I will keep this issue open until the docs have been updated.
it is not clear when you do
for row in DBF('xxx.dbf'): ......
If the rows are accessed/read in a sorted order or in a random order