Hello all,
Trying to get a IF statement working.
strUSER = "Test1"
This works.... The exception does not fire
This does not.....The exception does fire
strUSER = "Test1"
I need the second one to work as well. The exception should not fire.
Why?
Thanks,
Ty
Trying to get a IF statement working.
strUSER = "Test1"
This works.... The exception does not fire
VB.NET:
ElseIf Not strUSER Like "Test1" Then
Throw New ArgumentException("Error")
End If
This does not.....The exception does fire
strUSER = "Test1"
VB.NET:
ElseIf Not strUSER Like "Test2" Or Not strUSER Like "Test1" Then
Throw New ArgumentException("Error")
End If
I need the second one to work as well. The exception should not fire.
Why?
Thanks,
Ty