Converting FoxPro 2 data

Converting the data is the very simplest part of the process because Visual FoxPro can work natively with data files in FoxPro 2 format. The system of storing fixed-length data in a .dbf file, variable length data such as memo fields and graphics in a .fpt file, and the indexes in a .cdx file has remained the same.

The big difference in data storage between FoxPro 2 and Visual FoxPro is the concept of the database container. All VFP data files can take advantage of features provided by the database container such as long field names, validation and referential integrity. In order to be able to do this, each dbf file has an area in its header which stores a reference to that file's database container. Files from version 2 lack this entry and these versions of FoxPro do not recognise a VFP-format dbf file at all. This is scarcely surprising. The writers of FoxPro 2.00 could not be expected to predict the changes that would be made in the next ten years.

The writers of VFP on the other hand were able to give Visual FoxPro the ability to read and write the older version of the files. The table structures from your existing database do not need to be upgraded, VFP can read and write to files in the old format. Both versions even respect each other's record locks so you can have users of both generations of FoxPro working with the same files simultaneously.

Practical aspects

This ability to share data makes the practical work of converting very much easier. If necessary, the old and new versions of the software can run in parallel during testing and direct comparisons can be made between them. The new software can even be introduced into production use stage by stage.


Introduction | Data | Program code | Menus | Reports | Screens | Strategy

MS Access technical tips

Visual FoxPro technical tips

General Tips

 

More tips from Alvechurch Data

Converting from FoxPro 2 to Visual FoxPro

Converting from FoxPro 2 to Visual FoxPro

Converting applications from FoxPro for Windows to Visual FoxPro

Read More

Converting FoxPro 2 program code to Visual FoxPro

Converting program code from FoxPro version 2 to Visual FoxPro

Read More

Converting FoxPro 2 menus to Visual FoxPro

Converting the menu from a Fox 2 database into Visual FoxPro

Read More

Converting FoxPro 2 Reports to Visual FoxPro

Converting reports from a Fox 2 database into Visual FoxPro format

Read More

Converting FoxPro 2 screens to Visual FoxPro

Converting screens from a Fox 2 database into Visual FoxPro forms

Read More