mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-05-05 14:28:31 +00:00
Merge pull request #1920 from definitelyliam/patch-2
[vb/en] Additional note for select statements
This commit is contained in:
commit
7c3c8aea41
@ -32,6 +32,9 @@ Module Module1
|
|||||||
Console.WriteLine("50. About")
|
Console.WriteLine("50. About")
|
||||||
Console.WriteLine("Please Choose A Number From The Above List")
|
Console.WriteLine("Please Choose A Number From The Above List")
|
||||||
Dim selection As String = Console.ReadLine
|
Dim selection As String = Console.ReadLine
|
||||||
|
' The "Case" in the Select statement is optional.
|
||||||
|
' For example, "Select selection" instead of "Select Case selection"
|
||||||
|
' will also work.
|
||||||
Select Case selection
|
Select Case selection
|
||||||
Case "1" 'HelloWorld Output
|
Case "1" 'HelloWorld Output
|
||||||
Console.Clear() 'Clears the application and opens the private sub
|
Console.Clear() 'Clears the application and opens the private sub
|
||||||
|
Loading…
Reference in New Issue
Block a user