Git Product home page Git Product logo

Comments (8)

nebojsac avatar nebojsac commented on June 27, 2024

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.

gadget00 avatar gadget00 commented on June 27, 2024

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.

nebojsac avatar nebojsac commented on June 27, 2024

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.

gadget00 avatar gadget00 commented on June 27, 2024

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.

nebojsac avatar nebojsac commented on June 27, 2024

$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.

gadget00 avatar gadget00 commented on June 27, 2024

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.

nebojsac avatar nebojsac commented on June 27, 2024

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.

gam6itko avatar gam6itko commented on June 27, 2024

I don't think it's still actual

from php-xbase.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.