VB.NET - The If Statement
August 9, 2009 - 11:08 pm
Sorry for not uploading a video for a while but here is a tut on the if statement
Duration : 0:4:10
Sorry for not uploading a video for a while but here is a tut on the if statement
Duration : 0:4:10
Using an IF Statement to Validate text placed in a text box on button press:
Here’s the code I used in this:
Dim Captain As String
Captain = TextBoxCaptain.Text
Captain = Captain.ToUpper
If Captain = “PICARD” Or Captain = “KIRK” Or Captain = “ARCHER” Or Captain = “PIKE” Or Captain = “JANEWAY” Then
MsgBox(”Indeed, Warp Factor 9!”)
Else
MsgBox(Captain & ” has never been a Captain”)
End If
Have fun!
Duration : 0:7:25