Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Internationalization problem
Message
 
To
18/05/2007 16:15:29
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01226947
Message ID:
01226952
Views:
31
This message has been marked as a message which has helped to the initial question of the thread.
>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?


Probably the POINT was not set correctly. In Russian it should be set to ",".
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform