Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why 1/2000000=0 is true ? BUG ?
Message
De
30/08/2003 10:59:30
 
 
À
30/08/2003 10:42:59
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00824749
Message ID:
00824776
Vues:
24
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform