Posted: Mon Nov 12, 2007 12:08 pm Post subject: VB6 HELP
I'm trying to create a telnet hacking game for the fun of it but I keep getting errors whats wrong with this code?
Code:
Private Sub Command1_Click()
If Text3.Text = "12.450.455.99" & Text4.Text = "21" & Text1.Text = "adminroot" Then
Timer1.Enabled = True
Else
MsgBox "Error."
On Error Resume Next
End If
End Sub
But & is wrong used.. & is used to make a underline to buttons at caption, and also as code to make a.. well.. iono know to explain it, like a "bracket" between words.
Thnx +rep to you lol such a simple thing I didn't think of.
Code:
Private Sub Command1_Click()
If Text3.Text = "12.450.455.99" And Text4.Text = "21" And Text1.Text = "adminroot" Then
Timer1.Enabled = True
Else
MsgBox "Error."
On Error Resume Next
End If
End Sub
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum