Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Found another bug
Message
From
04/07/2001 11:58:16
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
04/07/2001 11:53:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00526700
Message ID:
00526704
Views:
15
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)
Previous
Reply
Map
View

Click here to load this message in the networking platform