Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Empty() vs 2 quotes
Message
From
03/11/2011 09:06:28
 
 
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:
01527933
Views:
72
>I have found statements like:
>
> ? myVariable = ""
>
>to consistently produce unreliable results
>.
>
>I now use with confidence.
>
> ? ISBLANK(myVariable) = .T. / EMPTY(myVariable) = .T.

You don't need the "= .T." part.
ISBLANK(myVariable)
or
EMPTY(myVariable)
can be used without the comparison, like:
IF EMPTY(myVariable)
  * do something
ENDIF
Tamar
Previous
Reply
Map
View

Click here to load this message in the networking platform