Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question on Empty()
Message
From
03/08/2000 12:45:20
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00400312
Message ID:
00400461
Views:
17
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform