Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using tables with FoxPro 2.6 and VFP 7.0
Message
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00742197
Message ID:
00742962
Views:
14
>I'm working on converting an application from FoxPro 2.6 to VFP 7.0 However, the tables are used by (at the present time) and indeterminate number of other systems and applications. As a result, I want to insure that the tables are NOT changed from 2.6 to 7.0 format. As far as I can tell, the version is identified by the first byte in the table header record. I've identified the following possible solutions, any input on these or other solutions would be appreciated.
>
>1) Have the VFP app switcheroo copy all the tables to a 2.6 version when the user exits.
>
>2) Create a function or the like that, when 2.6 fails to open the table, will rewrite the header record to identify the table as a 2.6 beast.
>
>Respectfully,
>
>John

I have an old Clipper application rewritten to VFP 7, but the files must remain available for another Clipper applicaiton still in use.

I created a utility to set the code page on the Clipper DBF files to 437 before the application even runs. Poke around in the CPCONVERT, CPZERO, CPCURRENT and related functions in the VFP Help section.

And look at any command in VFP that makes a new file to add a parameter to make it FoxPro compatible. Like Copy To or PACK.

And warn the clients to pick 437 as code page if anything slips by you.

dennis
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform