Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
EMPTY() Bug - Review
Message
De
30/04/2004 03:54:31
 
 
À
30/04/2004 03:50:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00899617
Message ID:
00899622
Vues:
18
Hi Jos,

I agree completely.

>>Hi I just had a look at this bug, and wanted to warn again:
>>
>>Try:
>>
>>clear
>>local a, b, c, d,x
>>a= -1
>>b= -0.1
>>c= 1
>>d= 0.1
>>x= a+b+c+d
>>? empty(x) &&The Value should be empty... but FoxPro tells us it isn't
>>? x=0 &&This should also deliver a ".f." but it gives us a .t. which is correct
>>
>>That means...
>>
>>Be sure not to use empty with unrounded Numeric Values -or-
>>don't use empty()
>>
>>Greetings
>
>
>Marvin, personally I think a numeric value of zero should not return .T. for empty() becasue zero is a valid value for a numeric.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform