Orders, stock and prices on Visual FoxPro, and nobody left to hire for it

Order entry, inventory and pricing have run on Visual FoxPro for twenty-odd years. The developer who wrote it is retiring, the ad for a replacement has been up since spring, and your largest customer now wants EDI. I mirror the data to SQL so the web store, BI and EDI can use it today, then replace the FoxPro application one module at a time while the warehouse keeps shipping.

Book a Legacy Assessment Why CDX files keep corrupting

Sound familiar?

Distributors rarely get in touch because the system is down. It mostly works. The trouble is everything around it:

  • You can’t hire for it. Microsoft announced in March 2007 that there would be no Visual FoxPro 10, the last service pack for VFP 9 shipped that October, and extended support ended in January 2015. A posting for a VFP developer stays open for months, and the people who really know FoxPro mostly learned it in the 1990s.
  • Customer pricing exists only in code. Contract prices, quantity breaks, a buying group that gets cost-plus on one product line and list-minus on the rest, a rounding rule somebody added after a dispute in 2011. Nobody can list the rules, so nobody can move them.
  • Tables are running out of room. Each Visual FoxPro DBF, FPT memo and CDX index file has a hard 2 GB ceiling, and order-line or stock-movement history reaches it first. The usual workaround, moving old years into archive tables, splits every sales-history report in two.
  • Indexes corrupt on the shared folder. A search misses an order that’s plainly visible in the grid, and someone throws everybody out to reindex at 7:40 while the phones ring.
  • Nothing modern can plug in. The web store, a BI tool or an EDI service needs the data, but Microsoft’s VFP ODBC driver and OLE DB provider are 32-bit only. 64-bit software fails to load them, usually with an error claiming the provider “is not registered”, which sends people off reinstalling things for a day.

What we usually find

Behind the order screen the layout tends to be the same, give or take a module:

  • A Visual FoxPro 9 application, sometimes still carrying screens from a FoxPro 2.6 ancestor, compiled to one EXE that every PC runs against a shared folder of DBF, FPT and CDX files.
  • A database container with stored procedures and triggers that enforce more business rules than anyone remembers, alongside free tables that bypass it completely.
  • Morning reports the sales team runs before the first call: open orders, back orders, items under reorder point, margin by rep. In practice those reports are the specification of the business, and the only one that is up to date.
  • Integrations through files, such as an export for the accounting package and a CSV of stock levels that someone uploads to the web store by hand every afternoon.

What we can do — pick the level you need

  1. Stop the bleeding in the FoxPro app

    Script and version the index rebuild, deal with the tables approaching 2 GB on a plan instead of on the day they fail, and prove the backups restore. This is short work. It means the next steps happen without an outage in the middle of them.

  2. SQL mirror first

    A replication job copies the Visual FoxPro tables into SQL Server or PostgreSQL continuously, with row counts and checksums on every run. The VFP application keeps writing its DBF files, and nobody at the order desk notices anything. From then on the web store, Power BI or an EDI service reads SQL, in 64-bit, without touching FoxPro. A corrupted index can no longer cost you a report either, because the mirror re-syncs from the data itself.

  3. EDI and e-commerce off the mirror

    With the data in SQL, a retailer’s X12 850 purchase order is staged there and imported into the FoxPro order tables by one controlled process, and ship notices (856) and invoices (810) go back out through your EDI provider. Stock levels and customer-specific prices feed the web store from the same database. The FoxPro app still owns every transaction; the mirror just makes them reachable.

  4. Replace it in slices, with the pricing proven

    Then the application itself moves to .NET over the SQL data, one module at a time: lookups and reports first, then purchasing, order entry and stock. Before order entry moves, a parity harness prices thousands of real historical order lines through both systems, and each customer and quantity break has to land on the same number. There is no stock-count weekend and no big-bang cutover. The FoxPro to .NET page describes how the slices run.

Related services

Visual FoxPro to .NET

FoxPro 2.x and Visual FoxPro applications rebuilt on .NET + SQL, with the business rules intact.

dBase / DBF data

DBF tables moved to SQL with codepages, memo files and deleted rows handled correctly.

Microsoft Access

Access front-ends and Jet/ACE databases upsized to SQL Server and rebuilt for the web.

Btrieve, Pervasive and Actian Zen

Btrieve-era accounting and ERP data moved to SQL, DDFs fixed, engine licenses untangled, totals proven.

Frequently asked questions

Should we hire a FoxPro developer or migrate?

If you find a good one, hire them, and hand them the migration as their project. A VFP developer on staff makes the old system safer while it runs, and the same knowledge makes the move cheaper. What doesn’t pay off is hiring someone to keep adding features to a platform whose last release shipped in 2007, because every new feature is one more thing to migrate later.

Can our web store read the FoxPro data directly?

Rarely well. Microsoft’s VFP drivers are 32-bit, most modern connectors and platforms are 64-bit, and a web job reading DBF files on a share while the order desk writes to them invites locking conflicts and broken indexes. A SQL mirror avoids both problems: the store reads an ordinary database, and the FoxPro app never knows it’s there.

One of our tables is close to 2 GB. What now?

First find out which file is growing. The DBF, its FPT memo file and its CDX index each hit the 2 GB limit on their own, and memo files bloat because edited memos take new blocks; PACK MEMO on an exclusive copy often reclaims a surprising amount. Moving closed years into an archive table buys more time. The lasting fix is moving the data into SQL, where order history can grow for decades. Our DBF Analyzer shows a table’s structure, memo and index dependencies in the browser if you want a first look.

How do you capture pricing rules nobody has written down?

From both ends. I read the pricing code and list every branch I find, and I replay real order lines from your history through the old system to record what it actually charged. Where the two disagree, the history wins, and we ask your sales manager why. You end up with a pricing table a person can read and a test suite that guards it during and after the migration.

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.

Book a Legacy Assessment Try the DBF Analyzer