Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Visual Basic programming problem

Name: Anonymous 2011-03-12 7:33

Hello all;

I've been coding a small program for visual basic (Yes it's not a great language but I figured I'd at least give it a try), and I've stumbled upon a small problem.

Code: http://pastebin.com/rqeKiE76

Now, the code works fine until section 6 where the outputs stop showing and the program closes itself. I'm sure I've missed something obvious and so I'm asking you, any help would be apprecaited.

Name: Anonymous 2011-03-12 14:02

>>9
VB is a terrible language and just looking at it makes me want to die.
Dim Number As Integer
Number = InputBox("Please enter your age")
If (Number > 50) Then
   MsgBox "you are older than 50"
ElseIf (Number < 20) Then
   MsgBox "you are younger than 20"
Else
   MsgBox "your age is between 20 and 50"
End If

Please go die.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List