Comments (8)
So, I have investigated this a bit further.
It would seem that DBF files have some "duplicate" rows that are invisible to LibreOffice if it reads it in DBF format. They do show up if you convert the DBF file to CSV before reading (I did this with a small python script, https://gist.github.com/bertspaan/8220892).
At this point I'm not sure if this is an issue with the way LibreOffice handles DBF files, or if it's something to do with xbase.
from php-xbase.
I think you should check opening the original DBF file directly with a DBF viewer, rather than LibreOffice to see if the duplicates where there in first instance
from php-xbase.
LibreOffice is a DBF viewer in that sense. When it's a DBF file I'm opening, the duplicate rows are not there. But that isn't the same as the xbase output, as the output does include the duplicates.
from php-xbase.
how do you use
moveTo($offset)
what value do you give to that function?? I want to use it but don't know which value to give it, so it can move to the row I want to
from php-xbase.
$offset
is the row you want to move to. So, if you want to keep moving forward, you need to increase the $offset
since the last time you used it.
from php-xbase.
but what determines the number of the row? for example, if I want to move to the record where id=1221. Does it uses a some sort of index? because DBFs do have index files that accompany them (INX files)
from php-xbase.
The number of the row is the row in the DBF file. So, if you're looking by ID, you need to first know where that ID is. Which probably means you need to go through the entire file first.
Best way to go about using these files is to import the entire thing into a database table, and then run any SELECT queries on the table itself.
from php-xbase.
I don't think it's still actual
from php-xbase.
Related Issues (20)
- language not supported HOT 2
- 'tests' directory in reposit ( zip file) HOT 2
- HOW TO ADD NEW COLUMN HOT 2
- Compatible .dbf versions HOT 1
- Save inside a temp file HOT 8
- PHP Fatal error: Uncaught LogicException: Invalid number of bytes in binary string HOT 6
- Can't read or edit data from any dbf files, nor adding new records HOT 3
- TableException: Expected header terminator not present at position 6049 HOT 9
- Uncaught TypeError: str_pad() expects parameter 1 to be string, bool given HOT 1
- Invalid number of bytes in binary string. Expected: 123. Actual: 124 HOT 1
- .fpt file disappears when appending record to .dbf file HOT 5
- Creating Visual FoxPro files results in an incorrect Header Length HOT 1
- Fatal Error reading Foxpro dbf HOT 1
- Failed to open stream: Permission denied (disappearing .fpt that is not regenerated) HOT 1
- Memo is null
- Cannot use Y column type HOT 1
- Cannot read Floating Point vairable
- Encoding or Language ID HOT 1
- Float and Double Type is not support how need to create column ?
- writeRecord() changes all decimal digits in the record HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-xbase.