string
comparison
order
. (decimal
poinVfull
stop)
digits or numbers
in
numerical order
AaBbCcOdEeFfGgHhliJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz
space
I " # $ X & ' ( ) * + • - • I : ; < => ? @ [ I 1 A I [ I
J-©
other non printing characters
The relationship
of
one
string
to
another
may
be:
•
S2
equal:
All
characters or numbers are
the
same or equivalent
lesser: The
first
part
of
the
string, which
is
different from the corresponding
character
in
the second string,
is
before
it
in
the defined order
greater: The
first
part
of
the first string which
is
different from the corresponding
character
in
the
second string,
is
after
it
in
the
defined order
Note that a ' .' may be treated
as
a decimal point
in
the
case
of
string comparison which
sorts
numbers
(such
as
SuperBASIC comparisons). Note
also
that comparison
of
strings
containing non-printable characters may give unexpected
results.
types
of
comparison
type 0 case dependent - character by character comparison
type 1 case independent· character
by
character
type 2 case dependent - numbers
are
sorted
in
numerical order
type 3 case independent - numbers are sorted
in
numerical order
type 0 not normally used by the SuperBASIC
system.
usage
type 1
File
and variable comparison
type 2 SuperBASIC
< ,< =,=,>
=,>
INSTR and < >
type 3 SuperBASIC
==
(equivalence)
12/24
•
•
•