HTBasic Help
×
Menu
Index

LEXICAL ORDER IS

Defines "alphabetical" order for string comparisons.
 
 LEXICAL ORDER IS option
 
Usage:
LEXICAL ORDER IS ASCII
LEXICAL ORDER IS Mytable(*)
 
Example:           LEXICAL ORDER IS.BAS
 
Description:
This statement defines the lexical order of characters to match the alphabets of various languages. The LEXICAL ORDER IS statement changes rules for collating order and upper/lower case conversions. Normally, rules for five languages are built into HTBasic: ASCII, FRENCH, GERMAN, SPANISH, and SWEDISH. (In HTBasic, LEXICAL ORDER IS STANDARD is the same as LEXICAL ORDER IS ASCII).
 
The current LEXICAL ORDER can be determined with the SYSTEM$("LEXICAL ORDER IS") function.
 
You may define your own LEXICAL ORDER rules using the LEXICAL ORDER IS Array(*) syntax. The array is a one dimension INTEGER array of at least 257 elements which contains the rule definitions. The Users Guide explains how to set the array elements to the define rules. In addition to collating rules, HTBasic allows you to also specify upper/lower case conversion rules.
 
See Also: