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

Click here to load this message in the networking platform