Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27472

VS 2010 Help for Console App in VB 2010 (I have code)

$
0
0
I need help with creating multiple commands without it closing.
Code:

Code:

Module Module1
    Dim Com As String
    Sub Main()
        Console.WriteLine("Welcome to MiniDOS. A text-based operating system. We hoped to have you here.")
        Console.ReadLine()
        Com1()
    End Sub

    Private Sub Com1()
        Throw New NotImplementedException
        If Com = "5+5" Then
            Console.WriteLine("10")
            Console.ReadLine()
        End If
    End Sub

End Module

When I execute the console, I type in the 5+5 command and suddenly it closes. I want it to show 10. :mad: How?

Viewing all articles
Browse latest Browse all 27472

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>