Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why 1/2000000=0 is true ? BUG ?
Message
From
30/08/2003 11:19:34
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
30/08/2003 10:59:30
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00824749
Message ID:
00824785
Views:
22
>Hi Hilmar,
>
>ok ok ok ... for direct use i can remember tons of VFP bug,
>
>but the problem occurs when you EVALUATE(expression).
>
>expression is a variable, not known algebric expression.
>
>Classic Example:
>you have a client to input exact fractional values
>
>
>textBox.Value is a string "1/200000"
>you put this string on a chars field, quantityConversion.
>when you use it you write:
>m.quantityConvert=myTable.quantity*evaluate("myTable.quantityConversion")
>
>
>Result: m.quantityConvert is ZERO !!
>
>I have to write a complex parser for resolve a banal problem. NO GOOD.
>
>Fabio

Yes, I understand it can cause you trouble. However, I know of no simple solution.
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