Here in the Netherlands we don't use the point but comma as our digit sign.
Normally this is controlled by local setting in windows (I use an english version with local setting to dutch). In, for example excel, this is working normally. In B4PPC however it seems it only will eat the point as decimal point.
So moving a textbox1.text with 51.5 to a cNumber cell, the value will be 51.5
When using 51,5 the cell has the value 515
When the first 51.5 however is shown in the table, when I display it in a form it fomrats as 51,5.
This both on my PC and PPC.
I fixed this by change the comma into a point when the field value changes, but that seems a very strange way to me.
The Table control will show numbers (cNumber fields) using the device format.
Well, this is no limitation for me as it behaves the way it should. I want a decimal comma and see a decimal comma. But how obout the input of 51.5 versus 51,5? It seems on the input there's a limitation?
With the input of 51.5 the point is handled as a decimal point so the variable value is 51.5.
With the input of 51,5 the comma is handled like a thousand separator (as in 123,456.78) which is of no use when the data is stored in a numeric variable. So the variable value is 515.
With the input of 51,5 the comma is handled like a thousand separator (as in 123,456.78) which is of no use when the data is stored in a numeric variable. So the variable value is 515.
If , is the thousands shouldnt 51,5 become 51500?
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
My Posts helped you? Consider Buying me a Porto Glass!
If you enter 5.5 we have a decimal point. So the value of the tablecell with format cNumber is 5.5. As Erel said, for showing the tablecontrol the control converts the values to the default device format. This is done only for the output. The internal variables still remain in the number format with decimal point.
If you enter 5,5 the value of the tablecell gets 55 (only the comma is removed). Showing this value in the tablecontrol (there is no format conversion necessary) will result in 55.