Formal metadata: information and software
tcldbf is an extension of Tcl/Tk that provides the Tcl script writer some ability to read and write DBF files. Its core is a set of C wrappers that read dBase files using Frank Warmerdam's shapelib and make the results available to Tcl procedures.
| tcldbf-1.3.tgz | 183K | gzipped tar file |
| tcldbf-1.3.zip | 192K | zip file |
dbf d -open input_file ?-readonly?
readonly is specified, the file cannot be updated.
dbf d -create output_file
$d add label type width ?decimals?
$d update row field value
$d insert row | end value0 ?value1 value2 ...?
$d insert row | end list
$d info
{record_count field_count}
$d fields
{name type native-type width prec}
$d values name
$d record rowid
$d close
$d forget
You'll need Tcl/Tk installed on your system in order to make use of this software. You can download Tcl/Tk from ActiveState, the company that currently provides an excellent free distribution:
<http://www.activestate.com/Products/ActiveTcl/>Assuming you're using Microsoft Windows and you installed ActiveTcl into
C:/Tcl, copy the DLL file (at this writing
dbf1.2.dll) into the directory C:/Tcl/lib.
Then create a directory C:/Tcl/lib/dbf, copy the file
pkgIndex.tcl-win into it, and rename the file
pkgIndex.tcl. To test, open a command prompt window,
type tclsh, then at the % prompt, type
package require dbf. The response should be the
version number of Tcldbf, at this writing 1.2.
Peter N. Schweitzer
Mail Stop 954, National Center
U.S. Geological Survey
Reston, VA 20192
Tel: (703) 648-6533
FAX: (703) 648-6252
Email: pschweitzer@usgs.gov