Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Private Function yesno() As Boolean
- Console.WriteLine("y/n")
- Select Case LCase(Console.ReadLine())
- Case "y"
- yesno = True
- Case "n"
- yesno = False
- Case "yes"
- yesno = True
- Case "no"
- yesno = False
- Case "ok"
- yesno = True
- Case "i would"
- yesno = True
- Case "i would not"
- yesno = False
- Case Else
- Console.WriteLine("I didn't understand your reply!")
- Console.WriteLine("Please answer with 'yes' for yes or anything else for no!")
- If Console.ReadLine() = "yes" Then
- yesno = True
- Else
- yesno = False
- End If
- End Select
- End Function
Advertisement
Add Comment
Please, Sign In to add comment