Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Non-empty string vs. empty string
Message
From
18/02/2009 12:29:16
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
18/02/2009 12:26:20
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01382676
Message ID:
01382679
Views:
61
This message has been marked as a message which has helped to the initial question of the thread.
>
>TA = "Some chars"
>? TA > ""          
>
>
>The above returns .F. Why? A non-empty string should surely be greater than an empty string?

Because of the three following three statements, only one at a time can be true!
a < b
a = b
a > b
Since TA = "" is true, it can't at the same time be greater.

See SET EXACT.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform