I have the below codes:
Dim pass As String = TextBox2.Text
'returndata is already a string
If trim(returndata) = "" Then
MsgBox("Wrong ID")
Else
MsgBox("Correct ID")
End If
But the messagebox always comes out with "Correct ID", even when the if statement is true.
Anyone here can help?
Dim pass As String = TextBox2.Text
'returndata is already a string
If trim(returndata) = "" Then
MsgBox("Wrong ID")
Else
MsgBox("Correct ID")
End If
But the messagebox always comes out with "Correct ID", even when the if statement is true.
Anyone here can help?