Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Empty() vs 2 quotes
Message
From
04/11/2011 11:28:03
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
02/11/2011 10:53:25
Jarid Griesel
The Innovix Technology Group (Pty) Ltd
Johannesburg, South Africa
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01526798
Message ID:
01528073
Views:
88
>I have found statements like:
>
> ? myVariable = ""
>
>to consistently produce unreliable results
>.
>
>I now use with confidence.
>
> ? ISBLANK(myVariable) = .T. / EMPTY(myVariable) = .T.

EXCEPT when you LOCATE FOR EMPTY(myField). Then you will get zero Rushmore optimzation. If you want to determine if a character field is "empty" do LOCATE FOR myfield=SPACE(LEN(myField))
Previous
Reply
Map
View

Click here to load this message in the networking platform