Can someone tell me the differents of the following 3 IF statements, pls.
Thanks in advance.
Dim strA As String = "hello"
Dim strB As String = "hello"
If strA = strB Then
MsgBox("="
End If
If strA Is strB Then
MsgBox("is"
End If
If System.String.Equals(strA, strB) Then
MsgBox("compare"
End If
Vincent
Thanks in advance.
Dim strA As String = "hello"
Dim strB As String = "hello"
If strA = strB Then
MsgBox("="
End If
If strA Is strB Then
MsgBox("is"
End If
If System.String.Equals(strA, strB) Then
MsgBox("compare"
End If
Vincent