Happy !
hernan / XBase
About XBase
Description
Package giving full access to Xbase (dBASE) files (dBASE III/IV). Hans Baveco, November 3, 2004. A rewrite of a Squeak goodie (XBase, version 1.00, published Feb 13, 1998 by andavino@tin.it). Ported to VisualWorks, back-ported to Squeak, and re-ported to Pharo
Examples
Open a dbf file with:
| dbf |
"dbf := XBaseFile on: 'd:\DBF\allotments.dbf'. "
dbf := XBaseFile on: 'D:\etarcview\berisp\subcad.dbf'.
"or"
dbf := XBaseFile fromUser.
dbf inspect.
"Close it with:"
dbf close
Retrieve the contents of a dbf with:
XBaseFile recordsFromFile: 'd:\DBF\allotments.dbf'.
or
XBaseFile recordsFromUser.
The file does not need to be explicitly closed now. If you want to have the field(labels) as well:
XBaseFile recordsAndFieldsFromFile: 'd:\DBF\allotments.dbf'.
or
XBaseFile recordsAndFieldsFromUser.
