CorString: CompareOrdinal

CompareOrdinal

Compares two specified String objects by evaluating the numeric values of the corresponding Char objects in each string.



 Public Function CompareOrdinal(
	  ByRef StrA As String,
	  ByRef StrB As String ) As Long

Parameters

StrA
[ByRef] String. The first string to compare.
StrB
[ByRef] String. The second string to compare.

Return Values

Long -  A 32-bit signed integer that indicates the lexical relationship between StrA and StrB, as shown in the following table
Value Condition
Less than zeroStrA is less than StrB.
ZeroStrA equals StrB.
Greater than zeroStrA is greater than StrB.

See Also

Project CorLib Overview

Class CorString Overview