>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