dBase III Plus and dBase IV programs: keeping the application, not just the tables
The program still starts with a menu someone drew in 1989, on top of a folder of .PRG files, painted screens and report forms. I get it running on Windows 11 first, record what every report prints, and only then move the application in slices that have to print the same thing.
Invoice # : 10457 Account : MILLER & SONS HARDWARE Terms : NET 30 Subtotal : 3,182.40 Total due : 3,373.34
Invoice 10457 PARITY ✓
Illustrative screens, fictional data. The invoice total matching is the easy half; the report printing the same subtotal on the same line is the other.
The situation you are probably in
dBase was the PC database before Windows. Ashton-Tate sold dBase II from 1980, dBase III in 1984 and III Plus soon after, then shipped dBase IV in late 1988, slow and buggy, with fixes that took about two years to arrive. Borland bought Ashton-Tate in 1991 and later sold the product line to dBASE Inc., which became dBase LLC; in May 2026 The Register reported that the company’s website had gone offline. The application you inherited from those years is usually some mix of the following:
.PRGsource files, which dBase IV compiles to.DBOon first run. If only the.DBOfiles survived, or a III Plus app went through dBCODE to run under the dBRUN runtime, there may be no readable source at all.- Data-entry screens in
.FMTfiles, generated from.SCRdesigns in the screen painter, and compiled once more to.FMOby dBase IV. Quite often somebody hand-edited the FMT years ago, and regenerating it from the painter would quietly throw that edit away. - Reports in
.FRMand labels in.LBL. In dBase IV a report is really three files: the.FRMdesign, generated.FRGcode and compiled.FRO. When IV converted a III Plus report it kept the original as.FR3, which explains the odd files nobody remembers making. - Indexes from two generations: one-index
.NDXfiles from III Plus, and dBase IV’s production.MDX, which holds up to 47 tags, opens with the table and is flagged in the DBF header, so a table copied without it complains. - Startup glue that lived on the old PC:
CONFIG.DBwithCOMMAND=DO MAIN, drive letters from a Novell login script, printer codes built withCHR(). On Windows 11 none of it starts anyway, because 64-bit Windows has no NTVDM.
How we migrate dBase DOS application systems
-
Get it running again, under an emulator
Windows 11 exists only as a 64-bit edition, and Microsoft supports NTVDM only on 32-bit x86 Windows, so a DOS program needs an emulator. For text-mode business software I use vDos, which prints through Windows and supports record locking; stock DOSBox was built for games and does not print. Once the old app runs again the deadline pressure goes. For some owners this step is the whole engagement, and that is fine.
-
Map the program, not just the folder
Every
.PRG,.FMT,.FRM,.LBLand.MEMfile is traced from the main menu down: which option runs whichDO, which report form, which set of indexes. Macro substitution (&) builds some file and field names at run time, occasionally from strings stored in a table, so the map is checked by running the app too. -
Record what every report prints
Under the emulator, each report runs with
REPORT FORM … TO FILEagainst a frozen copy of the data, alongside the on-screen totals people check by eye. Those text files become the contract: the new system has to produce the same lines, the same subtotals and the same rounding, or a written explanation of why not. -
Data through the DBF pipeline
The tables move as our DBF data migration page describes. The application adds one thing: which NDX and MDX tags the program actually opens, and which it forgot about.
-
Rebuild report by report, then screen by screen
Reports and lookups move first to .NET against the SQL mirror, because they are read-only and their parity check is a text comparison. Entry screens follow one at a time; the dBase program keeps writing its DBFs until each write path matches. After the last one, the emulator lingers a while as a read-only archive.
What survives the migration
- Every report same lines, same subtotals and the page breaks that matter, checked against the text the old
.FRMproduced. - Field rules on the screens the PICTURE templates and RANGE or VALID checks on
@…GETfields, which are often the only validation the business has. - The arithmetic running totals in memory variables, and
ROUND()exactly where the old code put it, including the places it arguably should not have. - Keyboard flow Enter to the next field, PgDn to finish, Esc to back out. People who type invoices blind keep doing so.
What does not survive: the emulator dependency, CONFIG.DB, the sticky note that says “REINDEX on Fridays”, and a printer that has to speak 1991.
Related
Moving the tables themselves is covered on dBase / DBF data migration. A DOS-era system rescued under vDos is written up in the 1997 agency system case study, and the free DBF Analyzer shows what your files contain without changing them.
Frequently asked questions
How is this different from your dBase / DBF data migration?
That service moves the tables and proves nothing was lost. This one deals with the program that uses them: menus, screens, report forms, index handling, startup setup. Many projects need both. If you only want the data in SQL for reporting, DBF data migration is the page you want.
Can we just keep running the dBase program?
Often, yes. A dBase application that still does its job can run under vDos on Windows 11, printing to a modern printer, for years. I treat that as a real outcome. It does not fix the missing audit trail, or the shrinking number of people who can read the code.
We only have .DBO files, or the app was encrypted for dBRUN. Is that a dead end?
No, but it is slower. The parity approach captures behaviour from the running program and its printed output, so it does not depend on source. What you lose is the shortcut of reading the code; the rules get found by exercising each screen and report instead.
Our program says dBase, but it is a single EXE. Is it really dBase?
Possibly not. Plenty of dBase III code was compiled with Clipper into a standalone EXE, which brings its own runtime issues, such as DOS extenders. The inventory works the same way; the details are on the Clipper / xBase page.
Why do our indexes keep going wrong?
In a III Plus application, usually because an .NDX file was closed while the data changed. Each NDX is maintained only while it is open, and one forgotten SET INDEX TO in a rarely used menu option is enough; hence the weekly REINDEX ritual. dBase IV’s production MDX mostly ended that by opening with the table. In SQL the ritual simply goes away.
Start with an assessment, not a rewrite.
Send us the stack you are on and what hurts. You get a written read of your data and code, the realistic options — including the ones that cost you less — and what parity testing would cover. Fixed price, agreed before we start.