Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
0 length string is not recognized ???
Message
 
 
To
01/01/2002 04:15:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00597801
Message ID:
00599602
Views:
17
VFP has EMPTY() function for that.

>>Hah? As long as SET EXACT is Off comparing any character expression to the empty string on the right would return .T.
>
>A more reliable way to check for an empty string, regardless of the setting of EXACT, is:
>
>*   IF LEN(ALLTRIM(lcMyVariable)) = 0
    IF <b>EMPTY</b>(lcMyVariable)
>        * Process empty value
>    ENDIF
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform