Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
String comparison
Message
 
À
30/08/2001 14:43:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00551012
Message ID:
00551040
Vues:
21
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform