Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
String comparison
Message
 
To
30/08/2001 14:43:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00551012
Message ID:
00551040
Views:
20
>>SET EXACT ON (or OFF)
>
>SET EXACT is OFF
>
>I really can't understand why this is not working.

From the Help:

Character expressions are compared character for character from left to right until one of the expressions isn't equal to the other, or until the end of the expression on the right side of the = operator is reached (SET EXACT OFF)
Therefore, in you sample it is comparing the first characters and the result is "M" = "M" and then the comparison ends.

The expression 'M'<'MICHEL' will be .T. whether SET EXACT is ON or OFF
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform