Command SET LEXICAL Foundation
Activates or deactivates lexical rules in the comparison of character strings.
SET LEXICAL on | OFF | <lToggle>
In Xbase++, character strings can be compared with one another on the basis of lexical rules. These rules build on the country specific language support of the operating system and can be extended by the function SetLexRule(). This results in a powerful tool for sorting, searching and comparing character strings.
When SET LEXICAL is ON, the lexical comparison mode is used for comparisons of character strings performed using the comparison operators (=, >, <, => and =<). SET LEXICAL ON has precedence over SET EXACT ON. When the lexical comparison mode is turned on, all comparisons of character strings are first performed in the usual manner by the comparison operators. If the comparison provides the value .F. (false), an additional lexical comparison is performed based on the translation rules defined with SetLexRule().
The exact equals operator == does not consider lexical rules, but performs its comparison only on the basis of the characters in the character strings (a binary comparison).
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.