Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Internationalization problem
Message
De
18/05/2007 16:15:29
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Internationalization problem
Divers
Thread ID:
01226947
Message ID:
01226947
Vues:
70
Hi all,

We have an implementation in Russia and for a time, we thought everything worked fine. Until a user noticed that he was missing the decimal values of his data. The problem can be summed up by this example.
** NOTES: 
** 1. in russian-locale, "," comma is the decimal point separator
** 2. Running on Windows 2000 in Russian locale
** 3. App uses CONFIG.FPW with CODEPAGE=1251
** 4. App uses _SCREEN.FONTCHARSET = 204
** 5. Inventory.dbf has CPDBF() = 1251
use inventory && columns: productid I, inventoryqty N(12,4)
browse && will correctly show that productid = 1 and inventoryqty = 11,06
** However, TABbing to the InventoryQty cell in the browser will replace
** the comma to a dot.  so that it actually shows: 11.0000 instead of 11,0600
? set('decimal') && 4
? set('separator') && ,
? inventoryqty && 11.0000  !!! Where are the decimal values ???
? inventoryqty * 2 && 22.0000 
replace inventoryqty * 2 && 22.0000, still removes the decimal values
Does anyone have any ideas on how to tackle this problem?
ramil
~~ learning to stand still
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform