Sample Programs

Page Updated 2/12/04




Sample Xbase DBMS programs are located in the xbase/samples and xbase/bin directories.

X-Base Sample Programs

ProgramProgram Description
checkndxThis program checks an NDX file
copydbfThis program copies a DBF file structure
dbfxtrctExtract data from dbf file and load into
dbfutil1Menu program for executing Xbase functions
deletallThis program marks all records in a DBF file for deletion
dumpdbtDebug memo files
dumphdrThis program opens an Xbase file and prints its header
dumprecsThis program dumps records for an X-Base file
exfilterExpression filter test program
packdbfThis program packs a database file
reindexThis program rebuilds an index
sample1This program creates an Xbase file MYFILE.DBF
sample2This program populates file MYFILE.DBF created by program sample1
sample3This program lists MYFILE.DBF data populated by program sample2
sample4This program deletes records, undeletes records, locks and packs datafile MYFILE.DBF
sample5This program demonstrates NDX class usage
testdateThis program tests the Xbase date methods
undelallThis program undeletes all deleted records in a dbf file
zapThis program removes all records from a DBF file comma delimitedoutput file suitable for input into an awk or perl script
P