Strange behaviour of Str$



My application was running on an XP SP2 machine, with the regional
settings set to give a "." as the decimal separator.

I went into the control panel, and changed the settings to a ","
decimal separator, while the app was running.

At that point, I got an error which looks like it was caused by Str$
returning a number like 2.94 as "2,94". This code runs on a regular
timer, and the error only occured once. It also doesn't occur if you
switch regions with the app shut down.

Is this known behaviour?
.



Relevant Pages

  • Re: Strange behaviour of Str$
    ... > settings set to give a "." ... > decimal separator, ... > occur if you switch regions with the app shut down. ... Dim output As String ...
    (microsoft.public.vb.general.discussion)
  • Re: Strange behaviour of Str$
    ... >> decimal separator, ... >> occur if you switch regions with the app shut down. ... > Str/Val both ignore the user's regional settings. ... it was actually an SQL query generation that raised the error ...
    (microsoft.public.vb.general.discussion)