my program is to be use on English and french version of Windows...the problem is that in english 10.00 is OK but in french they use a "," for decimals as in 10,00 ...entering 10.00 will give an error....I tried the formatnumber and formatcurrency but still get an error.
The only solution I found is to check every text field using the Isnumeric and if it's = false then I use the Left and Right statement to check every digit in each text field and if it sees a "." for a decimal it changes it to a "," to make if french compatible.
Since the data in the text fields may have between 1-10 decimals it's hard to know where the decimal dot will be, therefore I need to check everything...
Is there anything that will convert the data depending on Windows regional settings ? I thought text1.text=formatnumber(text1.text,2) would work but it doesn't...
If you answer this one I'll owe you a beer !
Cheers !
The only solution I found is to check every text field using the Isnumeric and if it's = false then I use the Left and Right statement to check every digit in each text field and if it sees a "." for a decimal it changes it to a "," to make if french compatible.
Since the data in the text fields may have between 1-10 decimals it's hard to know where the decimal dot will be, therefore I need to check everything...
Is there anything that will convert the data depending on Windows regional settings ? I thought text1.text=formatnumber(text1.text,2) would work but it doesn't...
If you answer this one I'll owe you a beer !
Cheers !