Zelaron Gaming Forum

Zelaron Gaming Forum (http://zelaron.com/forum/index.php)
-   Tech Help (http://zelaron.com/forum/forumdisplay.php?f=329)
-   -   vb help (http://zelaron.com/forum/showthread.php?t=38553)

osmoses-jones 2006-01-11 03:57 PM

vb help
 
this my code
Private Sub cmdLogon_Click()

If txtName.Text = vbNullString Then
MsgBox "you must enter your name", vbOKOnly + vbInformation, " Name Error"
End If



If txtPassword.Text = vbNullString Then
MsgBox "you must enter your password", vbOKOnly + vbInformation, " Password Error"
End If




If txtPassword.Text = "Password" Or txtPassword.Text = "password" Then
MsgBox "logon complete", vbOKOnly
End If


If txtPassword.Text <> "Password" Or txtPassword.Text <> "password" Then
MsgBox " invalid password ", vbOKOnly + vbInformation, "invalid password"
End If


End Sub

when i put the correct password it said login but then invalid password how to fix this.

WetWired 2006-01-11 10:28 PM

What language is that? It looks like Pascal maybe?

osmoses-jones 2006-01-12 08:56 PM

it is vb i found the problem.


All times are GMT -6. The time now is 06:40 PM.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.