summaryrefslogtreecommitdiffhomepage
path: root/visualbasic.html.markdown
diff options
context:
space:
mode:
authorJacob Ward <jacobward1898@gmail.com>2015-11-02 08:12:54 -0700
committerJacob Ward <jacobward1898@gmail.com>2015-11-02 08:12:54 -0700
commit861ee642234d360e9a257e4b4d4ecd44449c81ca (patch)
tree4b505edfba4aa262b3a53fdcbf448cee0ebfc93e /visualbasic.html.markdown
parentdb4e212602121c5d84fc987d47054dbbbe21b1b0 (diff)
parent140f6c07bc9580fec741e5cac77c5a4e22144c39 (diff)
Merge remote-tracking branch 'adambard/master'
Diffstat (limited to 'visualbasic.html.markdown')
-rw-r--r--visualbasic.html.markdown30
1 files changed, 15 insertions, 15 deletions
diff --git a/visualbasic.html.markdown b/visualbasic.html.markdown
index accdbf56..dfb89307 100644
--- a/visualbasic.html.markdown
+++ b/visualbasic.html.markdown
@@ -9,13 +9,13 @@ filename: learnvisualbasic.vb
Module Module1
Sub Main()
- ' A Quick Overview of Visual Basic Console Applications before we dive
- ' in to the deep end.
- ' Apostrophe starts comments.
- ' To Navigate this tutorial within the Visual Basic Complier, I've put
- ' together a navigation system.
- ' This navigation system is explained however as we go deeper into this
- ' tutorial, you'll understand what it all means.
+ 'A Quick Overview of Visual Basic Console Applications before we dive
+ 'in to the deep end.
+ 'Apostrophe starts comments.
+ 'To Navigate this tutorial within the Visual Basic Complier, I've put
+ 'together a navigation system.
+ 'This navigation system is explained however as we go deeper into this
+ 'tutorial, you'll understand what it all means.
Console.Title = ("Learn X in Y Minutes")
Console.WriteLine("NAVIGATION") 'Display
Console.WriteLine("")
@@ -32,9 +32,9 @@ Module Module1
Console.WriteLine("50. About")
Console.WriteLine("Please Choose A Number From The Above List")
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.
+ 'The "Case" in the Select statement is optional.
+ 'For example, "Select selection" instead of "Select Case selection"
+ 'will also work.
Select Case selection
Case "1" 'HelloWorld Output
Console.Clear() 'Clears the application and opens the private sub
@@ -91,12 +91,12 @@ Module Module1
'Two
Private Sub HelloWorldInput()
Console.Title = "Hello World YourName | Learn X in Y Minutes"
- ' Variables
- ' Data entered by a user needs to be stored.
- ' Variables also start with a Dim and end with an As VariableType.
+ 'Variables
+ 'Data entered by a user needs to be stored.
+ 'Variables also start with a Dim and end with an As VariableType.
- ' In this tutorial, we want to know what your name, and make the program
- ' respond to what is said.
+ 'In this tutorial, we want to know what your name, and make the program
+ 'respond to what is said.
Dim username As String
'We use string as string is a text based variable.
Console.WriteLine("Hello, What is your name? ") 'Ask the user their name.