Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
TEXTCOMP Function
◄Syntax► ◄Example► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
TEXTCOMP(a$,b$)
■ a$,b$ Two strings whose relative order as they would be
sorted by an ISAM index is compared. Only the first
255 characters are considered.
■ The comparison is not case sensitive ("A" is the same as "a"), and
any trailing spaces are removed.
■ TEXTCOMP uses the International Character Sort Order Tables for
sorting international characters. See Appendix E in the BASIC
Language Reference.
Returns
An integer value 1, 0, or -1, depending on the relative positions
of a$ and b$ as they would be sorted by an ISAM index:
-1 When a$ precedes b$.
1 When a$ follows b$.
0 When a$ is equivalent to b$.
See Also ◄SetFormatCC►