Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NEVER compare values with EMPTY()!!!! SERIOUS Bug!
Message
From
21/09/2001 09:50:02
James Beerbower
James Beerbower Enterprises
Hochheim Am Main, Germany
 
 
To
21/09/2001 06:23:38
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00559148
Message ID:
00559223
Views:
17
>>Empty is meant for character values it seems!
>
>Not according to Help.
>
>In any event, EMPTY() was usefull for testing for the existence of an optional parameter (ie. a value other than 0 or .F.) ... but obviously not in this type of situation.


Hmm, I suspect that the help file also suggests it works with numbers but the fact that lnValue = 0 provides result inconsistent with empty(lnValue) suggests otherwise to me!

I rarely use the empty command on parameter because it makes more sense to use VARTYPE or TYPE, that way you check whether it was both passed and passed correctly at the same time.
James Beerbower
James Beerbower Enterprises
Frankfurt, Deutschland
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform