Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
0 length string is not recognized ???
Message
From
01/01/2002 04:15:06
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00597801
Message ID:
00599555
Views:
15
>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
        do processing for zero length variable
    ENDIF
David M. Stowell
Ravenslake Consulting
Chicago, Illinois

e-mail: davidstowell@ravenslakeconsulting.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform