Dec() does not work when using different language OS:
Using PB 12.5, OS English and French, DBParm: DecimalSeperator = '.'
Database Driver is automatically able to understand the decimal separator and parse number properly.
Non-Issue:
Numbers are stored as numbers in database.
- running French OS where decimal separator is comma
- read the number from database. e.g. 1.50
- have value of 1,50 - correct
Issue:
Numbers stored as string in database.
- running French OS where decimal separator is comma
- read the string from database. e.g. 1.50
- call Dec(1.50) returns 0 (since decimal separator is comma) - wrong
- call Dec(1,50) returns 1,50 (since decimal separator is comma) - correct
I am looking for any solutions.
Thanks