Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Marking code pages when upgrading from 2.6
Message
De
15/04/2000 06:33:06
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00359914
Message ID:
00359995
Vues:
9
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform