I don't think this would be considered a bug by MS. The values the programmer provides are independent of regional settings. For instance, if I separate decimals with a comma instead of a point (the norm in most of S.America, I think), the programmer still has to provide values with points for decimal.
If you get values from the user, you can convert to monetary with ntom().
Hilmar.
>Hello again all,
>
>My second bug in 1 day...
>
>set currency to "£"
>? val("123.23") && returns 123.23
>? val("$123.23") && returns 123.23 -- Vartype = Y
>? val("£123.23") && returns 0.00 -- Vartype = N
>
>VFP Does exactly the same thing whatever set currency is set to, it appears that VAL always accepts the US Dollar and returns type currency (not what the doc's say)
>
>(my currency symbol in Windows is set to Swiss francs)
>
>by any chance is this fixed in VFP7? - (Racking up that ammunition)
>
>TIA
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)