I always use String.Equals as it returns a boolean and you do not have to compare to 0. Additionalty you can define how to compare the values.
Code:If String.Equals("A", "a", StringComparison.OrdinalIgnoreCase) Then ... End If
|
Results 1 to 3 of 3
Thread: Comparing String,Threaded View
|
Click Here to Expand Forum to Full Width |