Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Marking code pages when upgrading from 2.6
Message
From
15/04/2000 06:33:06
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00359914
Message ID:
00359995
Views:
8
>Hi everyone.
>
>We have a large accounting application based on FPW 2.6 and are releasing an upgrade to a VFP based version. One of the annoying things we have to deal with is marking all of the code pages, and we don't want our clients to have to go through that when they upgrade. Is there a way automatically mark code pages for tables when they are opened for the first time under VFP?


Paul,
There is a program called "cpzero.prg" at home()+"tools\cpzero" directory. It could be used to mark/unmark a table with any codepage. First open it and find the values you need for your codepage. Then call cpzero with table, codepage. If no codepage is passed it zeroes the codepage. Example :

do home()+"tools\cpzero\cpzero" with "mytable",857
* Mark mytable with Turkish DOS codepage.

FYI if you want to use lowlevel functions at your own codepage mark is byte offsett 29 (hack the header at your own risk).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform