I know that previously Bob Sneidar had posted info about reading metadata from .dbf files.
I am wondering if this code was uploaded or made available somewhere, as I have a need to perform the same task. If I can read enough metadata from .dbf files, then I can attempt to perform the conversion of an entire FoxPro database into a Revolution stack utilizing a SQL database backend.
I don't need to use Rev to read the actual data from the .dbf files, I have other software to perform that task. I just need to be able to read the low-level metadata for field name, field type, NULL status, UNIQUE status, and primary key status of fields.
David Simpson
http://www.fmpromigrator.com
reading FoxPro .dbf file metadata?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
reading FoxPro .dbf file metadata?
David Simpson
www.fmpromigrator.com
www.fmpromigrator.com
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Location: Aalst, Belgium
- Contact:
Re: reading FoxPro .dbf file metadata?
Hi David,
Here's a pretty good explanation of the .dbf file structure, including the 'header' that contains the metadata:
http://www.clicketyclick.dk/databases/x ... t/dbf.html
One .dbf file contains a single table of the database (except for the 'memo' long text fields, which are stored in a separate .fpt file)
HTH,
Jan Schenkel.
Here's a pretty good explanation of the .dbf file structure, including the 'header' that contains the metadata:
http://www.clicketyclick.dk/databases/x ... t/dbf.html
One .dbf file contains a single table of the database (except for the 'memo' long text fields, which are stored in a separate .fpt file)
HTH,
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com
Re: reading FoxPro .dbf file metadata?
You will also find a couple of very well detailed files at the Wotsit site: http://www.wotsit.org/
=Doc-
=Doc-
Re: reading FoxPro .dbf file metadata?
Thanks Jan and Doc. I have looked at some of this info previously and was trying to avoid reinventing the wheel. But upon looking at it again, it might not be that time consuming to just write it all from scratch. Besides, I am going to need the backlink list from .DBC files anyhow, and don't see much of any other way to get that info.
David Simpson
www.fmpromigrator.com
www.fmpromigrator.com