Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Codepage for DOS tables
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00183391
Message ID:
00184256
Vues:
25
>>Hi All,
>>my application receives and processes a number of tables a day. Tables are created in FP2.6DOS without codepage info. Application's default codepage is 1251. I am looking for a way to open FP2.6DOS tables without the codepage dialog and nevertheless marking them as codepage 866.
>>TIA.
>
>Kamil, try SET CPDIALOG OFF.
>
>Nick

And to add a codepage, do that with the CPZERO utility. You can do several tables at once, like in the example provided hereunnder.

* Program...........: SET_SAARI_CP.PRG
* Author............: José Constant
* Project...........: Autosoft
* Created...........: 15/10/98 20:03:48
* Copyright.........: (c) Constant Software Systems, 1998
* Compiler..........: Visual FoxPro 05.00.00.0415 for Windows
*) Description.......: Les tables SAARI n'ont pas de page de code alors qu'elles
* : sont en 1252 (Windows ANSI)
* : En mettre un, de façon à ce que la lecture ODBC et la mise
* : à jour via le DPI soient correctes.
* Calling Samples...:
* Parameter List....:
* Major change list.:

CLOSE DATABASES
SET DEFA TO ("f:\saari\autocons")

gnDbfnumber = ADIR(gaTable, '*.DBF') && Create array

CLEAR
FOR nCount = 1 TO gnDbfnumber && Loop for number of databases
DO home() + "tools\cpzero\cpzero" WITH GaTable[nCount,1], 0
DO home() + "tools\cpzero\cpzero" WITH GaTable[nCount,1], 1252
ENDFOR
SET DEFA TO C:\CDBK30\AUTOSOFT && Set path to Visual FoxPro directory


José
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform