Visual Basic

Isn't there a version of Visual Studio Express that's for VB? That's what I used in my C++ class because they didnt supply the program.
 
aleeock157 said:
Isn't there a version of Visual Studio Express that's for VB? That's what I used in my C++ class because they didnt supply the program.
http://www.microsoft.com/express/vb/default.aspx

Man, I hate VB.
 
VB is definately not my favorite language... but I'm only taking the Advanced course next semester because all my friends are taking it and in college if you meet people, it's kinda hard to keep in touch with them.
 
Hey Hines, I was thinking about your code the other day because I thought I saw something that might be wrong but I couldn't think of what. I looked back at some of my coding stuff and noticed that I always wrote "Option Explicit" before I dimmed my variables. That was in VB though, so I'm not sure if it would carry over, but I don't think you can just Dim variables without any other code attached to it.
 
sry to double post

i got the actual program visual basic, so im good now :)

EDIT - i made a simple game just to test my copy of VB out, and its not quite working, what could be wrong with it?

Private Sub Form_Click()
10 Dim A As String
20 Dim B As String
30 Dim C As String
40 Dim D As String
50 Dim E As String
60 A = InputBox("Yes or no? Choose one.")
70 If A = "Yes" Or A = "yes" Then GoTo 200
80 If A = "No" Or A = "no" Then GoTo 200
90 E = InputBox("Lets try this again, yes or no?")
100 If E = "Yes" Or E = "yes" Then GoTo 200
110 If E = "No" Or E = "no" Then GoTo 300

200 B = InputBox("Are you sure?")
210 If B = "Yes" Or A = "yes" Then GoTo 2000
220 If B = "No" Or B = "no" Then GoTo 90

300 C = InputBox("Wrong answer, now try to escape me!")
310 If C = "" Or C = C Then GoTo 1000

1000 D = InputBox("That's right, you can't!")
1010 If D = D Then Print "Keep trying, you can't win!"
1020 If D = "" Then Print "Not going to work!"
1030 GoTo 1000

2000 Print "You have won."

End Sub

when you go to line 200, no matter whether you type in "yes" or "no" it automatically goes to line 2000
 
Back
Top