Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Question on Empty()
Message
De
03/08/2000 09:34:18
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Question on Empty()
Divers
Thread ID:
00400312
Message ID:
00400312
Vues:
61
Hi everybody,


Can somebody can tell my why this statement returns .F. when the value is 0.00? I tough that EMPTY would return .T. when the value is null or 0

The initial value is 0 then later I change it to:
ThisForm.TxtroZeroDebit.Value = IIF(lnAmount > 0,0.00,-lnAmount)

I check and recheck, the value is 0.00
IF EMPTY(ThisForm.TxtroZeroDebit.Value)


PS: I know how to fix it but I've seen this code in many places within my application and I wonder if I have to check ALL my forms.

PSS : this code was working before, the only modification I did was how to calculate lnAmount wich should not influence anything and I also change 0 to 0.00 because I like to see 2 decimals in the field. And of course I save the form, now, I'm using FoxPro 6.0 SP3 but I don't know wich service pack I had when I last modify that forms.


TIA
Diane Robitaille eng.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform