StrToCurr and DecimalSeparator
Posted on 2002-07-11
Do you know what the DecimalSeparator value would be by default for people running a Delphi 4 program in any of these countries? Do they have a value different from "."?
The reason I ask is that I am using StrToCurr to convert strings to currency values. All of the strings I am passing to StrToCurr have a "." as the decimal separator.
Now I just realised that if someone runs my program in a country where they have a DecimalSeparator *other* than a ".", they will get an exception. So I assume I would need to add DecimalSeparator := '.'; at the start of my program to make it work for all users.
Thanks in Advance,