|
-
Aug 14th, 2003, 02:41 PM
#1
Thread Starter
Junior Member
What's wrong with this code? [Resolved]
Dim intPress As Integer, strPass As String, x As Boolean
Private Sub Command1_Click()
strPass = Text1.Text
If PassCheck() = True Then
intPress = MsgBox("Correct Password!", vbExclamation, "The result is:")
Else
intPress = MsgBox("Incorrect Password", vbCritical, "The result is:")
End If
End Sub
Private Function PassCheck(strPass As String) As Boolean
PassCheck = False
If strPass = "loser" Then
PassCheck = True
End Function
Last edited by joe_h_31028; Aug 14th, 2003 at 03:37 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|