StrICmp

Top  Previous  Next

function StrICmp(s1 As String, s2 As String) As Integer

 

Compares the strings s1 and s2 for equality. The comparison is case insensitive.

 

Parameters

 

s1 ... first string
s2 ... second string

 

Return values

 

s1 < s2: negative number
s1 = s2: 0
s1 > s2: positive number

 

 

Example:

If StrICmp(s1, s2) > 0 Then

   'do something

End If