Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why 1/2000000=0 is true ? BUG ?
Message
From
30/08/2003 10:59:30
 
 
To
30/08/2003 10:42:59
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00824749
Message ID:
00824776
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform