E
Ed
I need to write program code for 'international' applications.
I have set my Region settings to Dutch(Netherlands).
In Dutch (and other major languages), commas represent the decimal point and
periods represent the thousands separators.
I wrote this simple formula:
Dim mynumber As Single
Dim mynumber2 As Single
Dim mynumber3 As Single
Dim mynumber4 As Single
mynumber = 1,50
mynumber2= 5
mynumber3=mynumber + mynumber2
mynumber4=mynumber3 + 1.5
I get a 'Compile Error, Expected End of Statment' message with the row
"mynumber = 1,5" highlighted.
What am I doing wrong? How can I overcome this?
Unfortunately, it seems not to be simple matter of putting a period in place
of the comma, for when I actually try to run a calculation using decimals
as, the results come out in commas. Chaining calculations becomes more than
very confusing (at least to me), because of the fact that the answer
returned after the first calculation is expressed in Dutch (e.g., 1,5), but
the next entry must be entered in 'American'. And if the initial values are
picked up as string variables from an input box, it becomes even more
confusing.
Are there resources to help explain this?
I have set my Region settings to Dutch(Netherlands).
In Dutch (and other major languages), commas represent the decimal point and
periods represent the thousands separators.
I wrote this simple formula:
Dim mynumber As Single
Dim mynumber2 As Single
Dim mynumber3 As Single
Dim mynumber4 As Single
mynumber = 1,50
mynumber2= 5
mynumber3=mynumber + mynumber2
mynumber4=mynumber3 + 1.5
I get a 'Compile Error, Expected End of Statment' message with the row
"mynumber = 1,5" highlighted.
What am I doing wrong? How can I overcome this?
Unfortunately, it seems not to be simple matter of putting a period in place
of the comma, for when I actually try to run a calculation using decimals
as, the results come out in commas. Chaining calculations becomes more than
very confusing (at least to me), because of the fact that the answer
returned after the first calculation is expressed in Dutch (e.g., 1,5), but
the next entry must be entered in 'American'. And if the initial values are
picked up as string variables from an input box, it becomes even more
confusing.
Are there resources to help explain this?