string.equals("..").ignorecase?

Signo.X

Well-known member
Joined
Aug 21, 2006
Messages
76
Location
Australia
Programming Experience
1-3
is there such a method in vb.net to be used along with the .equals() to compare if a string equals to another one ignoring the case?

like in java.. str.equal("tt").ignorecase() ??

~signo.X
 
The equals function will accept a stringcomparison as one of it's overloads, one of the stringcomaparison members is OrdinalIgnoreCase Or CurrentCultureIgnoreCase
 
Yes the String.Equals Method (String, StringComparison)
So it you got string s1 and s2 you write: s1.equals(s2, [choose from list given here])
 
Back
Top