Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Non-empty string vs. empty string
Message
From
18/02/2009 16:32:54
 
 
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:
01382760
Views:
51
Hmm.. no one really explained what is happening....

When comparing strings in VFP, the comparison continues to the end of the string on the left, comparing character by character.


>
>TA = "Some chars"
>? TA > ""          
>
>
>The above returns .F. Why? A non-empty string should surely be greater than an empty string?
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform