spikepl
Eledittingent Beliped
- Local time
- Tomorrow, 00:50
- Joined
- Nov 3, 2010
- Messages
- 6,142
I need to determine what is the decimal separator on the user machine. I know how to do it in a complicated way. But how to do it simply? (the problem is that data always comes as text, formatted with "," as decimal separator, but this has to be read on different machines, so the output of, say Cdbl will differ, and that data is not suitable for Val)
(There is some APi that allows extraction of locale settings, but I was wondering if some simpler built-in property/method exists? In Excel there seems to be a property Application.DecimalSeparator. I could also run a small test, grab a decimal number stored in a string, try to read it using Cdbl and see what comes out )
(There is some APi that allows extraction of locale settings, but I was wondering if some simpler built-in property/method exists? In Excel there seems to be a property Application.DecimalSeparator. I could also run a small test, grab a decimal number stored in a string, try to read it using Cdbl and see what comes out )
Last edited: