Utility and Example Programs

Page Updated 07/05/25




XBase Example Programs

ProgramProgram Description
xb_ex_dateExample program demonstrataing xbDate class.
xb_ex_expressionExample program demonstrating expression usage.
xb_ex_filterExample program demonstrating filter usage.
xb_ex_linklistExample program demonstrating link list usage.
xb_ex_logExample program demonstrating log file usage.
xb_ex_relationExample program demonstrating how to set up reltionships between tables.
xb_ex_sqlExample program demonstrating current SQL functionality.
xb_ex_coreExample program demonstrating system settings.
xb_ex_stringExample program to demonstrate xbString class usage.
xb_ex_timeExample program to demonstrate xbTime class usage.
xb_ex_v3_create_dbfExample program to create V3 DBF file.
xb_ex_v3_upd_dbfExample program to update V3 DBF file.
xb_ex_v4_create_dbfExample Program to create V4 DBF file.
xb_ex_v4_upd_dbfExample program to update V4 DBF file.
xb_dumprecsExample program showing block read processing and how to export a table to a file.


XBase Utility Programs (see man pages)

ProgramProgram Description
xb_cfg_checkThis program prints the compile settings and options in use.
xb_clearixThis recovery program clears or sets the production index flag in a dbf file. Useful in recovery situations when encountering missing or corrupt index file.
xb_copydbfThis program copies a DBF file structure.
xb_dbfutil1Menu program for executing Xbase functions.
xb_deletallThis program marks all records in a DBF file for deletion.
xb_dumpdbtDebug memo files.
xb_dumprecsThis program dumps records for a DBF file.
xb_execsqlThis program executes SQL statements.
xb_importThis program is used to import delimited data into a DBF file/table.
xb_packThis program packs (removes deleted records) from a DBF database file.
xb_reindexThis program rebuild NDX and MDX index files for a given DBF database file.
xb_tblinfoThis program opens an Xbase file and prints its header.
xb_undelallThis program undeletes all deleted records in a dbf file.


XBase Utility Program Command Line Options

xb_cfg_checkxb_clearixxb_copydbfxb_dbfutilxb_deletallxb_dumpdbtxb_dumprecsxb_execsqlxb_importxb_pack xb_reindexxb_tblinfoxb_undelall
-h,-?,--help
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
-v,--version
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
-q,--quite
Y
Y
Y
-d,--delimiter
Y
Y
-i source.DBF
Y
Y
-n myindex.NDX
Y
-t target.DBF
Y
-t myfile.DBF
Y
Y
Y
Y
Y
Y
Y
Y
Y
-s filename.SQL
Y
-c compatibility mode
Y
-x xbase mode
Y
-w "EXPRESSION"
where statement like
.NOT. DELETED()
Y