Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Question on Empty()
Message
De
03/08/2000 12:45:20
 
 
À
03/08/2000 11:37:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00400312
Message ID:
00400461
Vues:
18
Hi Boris,

Your right, I found that the value actually is 0.000000000000455000.

IF your interested in the code which is giving me the error, here it is:

CALCULATE SUM (curGlEntry.nDebit) TO lnAmountDebit
CALCULATE SUM (curGLEntry.nCredit) TO lnAmountCredit
wait windows "lnAmountDebit = " + str(lnAmountDebit, 20, 18)
&& shows 2841.140000000000000
wait windows "lnAmountCredit = " + str(lnAmountCredit, 20, 18)
&& shows 2841.140000000000000


lnAmount = lnAmountDebit - lnAmountCredit
wait windows "lnAmount = " + str(lnAmount, 20, 18)
&& shows 0.000000000000455000

This.Value = IIF(lnAmount > 0.00,0.00,-lnAmount)

And obviously This.Value is not empty. I will replace with this
lnAmount = round(lnAmountDebit - lnAmountCredit,2)

Thanks again, at least there is a logical reason (not very smart from VFP) and I'm not crazy. ;-)
Diane Robitaille eng.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform