HP 3000 Manuals

LEX [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation


HP Business BASIC/XL Reference Manual

LEX 

The LEX function is used to compare two strings in a Native Language
dependent manner.  For example:

     LEX(String1$, String2$,Nl_var)

returns:

        -1 if String1$ < String2$
         0 if String1$ = String2$
         1 if String1$ > String2$

Syntax 

LEX(str_expr1, str_expr2 [nl_num_expr] )

Parameters 

str_expr1,          String variables, quoted strings, the values returned
str_expr2           from a string function, or any expressions using the
                    appropriate string operators to construct an
                    expression.

nl_num_expr         A numeric expression that evaluates to a Native
                    Language ID. If nl_num_expr is -1, the underlying
                    native language number is used as the language
                    specifier.  If a non-negative number is used, that
                    number is taken directly as the language specifier.
                    If the native language option is not specified then
                    the option defaults to zero (the underlying native
                    language).

The underlying native language specifies NATIVE-3000.  NATIVE-3000 is the
system language that does not consider Native Language Support.  For more
information on Native Language Support, refer to "Native Language
Support" in chapter 6.

The native language number used for the comparison is determined by the
normal selection process.  A native language number can be supplied as
the third argument.



MPE/iX 5.0 Documentation