I think that you need to change
Console.ReadLine()
to
uservalue = Console.ReadLine()
,
adam_k
Veteran Poster
1,057 posts since Jun 2011
Reputation Points: 274
Solved Threads: 205
Skill Endorsements: 11
The above suggestion is correct, The program might also be terminating to fast for you to see.
Try wrapping the program with a while.
Like this:
Sub Main()
Dim uservalue As String
Dim ex As String = ""
While ex <> "exit"
Console.WriteLine("What football team do you support? Oldham, Manchester City, or Manchester United?")
uservalue = Console.ReadLine()
If uservalue = "oldham" Then
Console.WriteLine("Good lad latics!")
ElseIf uservalue = "Manchester City" Then
Console.WriteLine("BOOOOOOOOOOOOOOOOO!!!!")
ElseIf uservalue = "Manchester United" Then
Console.WriteLine("BOOOOOOOOOOOOOOOOO!!!!")
Else
Console.WriteLine("I DONT KNOW WHO YOU ARE!")
End If
Console.WriteLine("Type exit to exit the application")
ex = Console.ReadLine()
End While
End Sub
This allows you to loop through the program until you want to exit.
Begginnerdev
Practically a Posting Shark
861 posts since Apr 2010
Reputation Points: 184
Solved Threads: 142
Skill Endorsements: 8