Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
EMPTY() Bug - Review
Message
From
30/04/2004 03:54:31
 
 
To
30/04/2004 03:50:14
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00899617
Message ID:
00899622
Views:
17
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform