Returns the comparison of two strings.
Syntax
compareTo( string1 , string2 )
string1.compareTo( string2 )
Parameters
string1
|
the string to compare to.
|
string2
|
the string to compare.
|
Returns
integer
|
0, if both strings are equal.
< 0, if string1 is less than string2.
> 0, if string1 is greater than string2.
|
Example
v = tName.compareTo( name )
|