Hi,
Here in Belgium, as in most West-European countries, we use a comma as decimal separator and a dot as thousands separator. As I've seen on the forum, Basic4ppc always uses the "en-US" locale for conversions to avoid locale specific problems...
It is a pitty that Basic4ppc does not take the Windows locale settings into account, but I can 'live' with this limitation. I really needed a decimal comma, we can take care of this.
However, the reader.getValue() function takes the Windows local into account... I have a value 0.5 in a (SqLite) database and when getting this value into a numeric variable I'm getting a value of 5 !!! Reader.getvalue() gives me 0,5 which is transformed into 5 as Basic4ppc 'ignores' comma's (at least if they are in front of the decimal point).
Of course I can take care about this too, but all this is prone to errors, especially if there are some situations where you have to do a conversion and in other cases you shouldn't...
Is there a way (some settings) to avoid conversions (in some cases) and to have Basic4ppc to be consistent in all cases? Or are there some work-arounds? All suggestions are wellcome.
Are there other known (library) functions also behaving this way?
Thanks for your feedback.
Here in Belgium, as in most West-European countries, we use a comma as decimal separator and a dot as thousands separator. As I've seen on the forum, Basic4ppc always uses the "en-US" locale for conversions to avoid locale specific problems...
It is a pitty that Basic4ppc does not take the Windows locale settings into account, but I can 'live' with this limitation. I really needed a decimal comma, we can take care of this.
However, the reader.getValue() function takes the Windows local into account... I have a value 0.5 in a (SqLite) database and when getting this value into a numeric variable I'm getting a value of 5 !!! Reader.getvalue() gives me 0,5 which is transformed into 5 as Basic4ppc 'ignores' comma's (at least if they are in front of the decimal point).
Of course I can take care about this too, but all this is prone to errors, especially if there are some situations where you have to do a conversion and in other cases you shouldn't...
Is there a way (some settings) to avoid conversions (in some cases) and to have Basic4ppc to be consistent in all cases? Or are there some work-arounds? All suggestions are wellcome.
Are there other known (library) functions also behaving this way?
Thanks for your feedback.