I don't see what's wrong with this line...
Author |
Message |
HazySmoke)345
![](http://i10.photobucket.com/albums/a121/HazySmoke/clubps2.jpg)
|
Posted: Sat Dec 24, 2005 4:28 pm Post subject: I don't see what's wrong with this line... |
|
|
code: | Private Sub Form_Load()
First
End Sub
Sub First()
Second (1,1)
End Sub
Sub Second(x As Integer, y As Integer)
If x <> 1 Then Exit Sub
If y <> 1 Then Exit Sub
Msgbox "Thanks, guys, this program now works!"
End Sub |
Right. That's the program. While I'm writing the script, the line "Second (1,1)" is highlighted in red. It said that "=" is expected. I don't see how . So I ran the program anyways, and, again, the program wouldn't run because of that same line, but this time, it says "syntax error". I don't really see what's wrong with it , it looks... fine. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
cool dude
![](http://www.taylorstrategicmarketing.com/images/king.jpg)
|
Posted: Sat Dec 24, 2005 6:05 pm Post subject: (No subject) |
|
|
i'm not sure exactly wat u want your program to do but to make the program run and stop the syntax error all u have to do is instead of saying Second (1,1) u have to say call Second (1,1) |
|
|
|
|
![](images/spacer.gif) |
diqua
![](http://upload.wikimedia.org/wikipedia/en/5/50/Calvin_%26_Hobbes_-_Calvin.png)
|
Posted: Fri Jan 13, 2006 2:28 pm Post subject: (No subject) |
|
|
take the brackets out ( and ) |
|
|
|
|
![](images/spacer.gif) |
|
|