|
-
May 16th, 2011, 02:52 PM
#1
Thread Starter
New Member
[RESOLVED] Password Verification
I dont know if my problem is similar to this or no but here it is :
Im making a simple program in which the user have an option to change password but the new password must be at least of 5 characters and must have at least one number. I could do the first part but for number filter, I almost tried all ways I know. So, I appreciate any help in this.
Ty in advance =)
-
May 17th, 2011, 12:46 PM
#2
Re: [GAVE UP] Have an event fire as soon as a part number is scanned in a textbox
Your problem doesn't even remotely relate to the original thread post.
Also do you know that you are posting to a 2 year old thread?
You might get a better response if you start your own new thread.
Regarding your problem, similar questions have been asked numerous times on this forum and searching for similar threads might reveal you useful post. If that doesn't help, let us know and we will be glad to post new solutions to your problem.
-
May 17th, 2011, 01:23 PM
#3
Re: Password Verification
Split into its own thread
Even if your problem was exactly the same as the 2 year old thread your posted your question in, you should always start a new thread.
-
May 17th, 2011, 01:30 PM
#4
Junior Member
Re: Password Verification
 Originally Posted by Tito Fadda
I dont know if my problem is similar to this or no but here it is :
Im making a simple program in which the user have an option to change password but the new password must be at least of 5 characters and must have at least one number. I could do the first part but for number filter, I almost tried all ways I know. So, I appreciate any help in this.
Ty in advance =)
use the code
i hope this code help you.
it filters.
but i'm not sure.
just try and explore.
ty.
-
May 18th, 2011, 09:34 AM
#5
Re: Password Verification
VB Code:
Private Sub Command1_Click() Dim lngIndex As Long Dim bFound As Boolean If Len(txtPassword.Text) < 5 Then MsgBox "Password is too short" Exit Sub End If For lngIndex = 1 To Len(txtPassword.Text) If IsNumeric(Mid(txtPassword.Text, lngIndex, 1)) Then bFound = True Exit For End If Next If Not bFound Then MsgBox "Password must contain at least one numeric character" Exit Sub End If End Sub
-
May 20th, 2011, 04:31 AM
#6
Thread Starter
New Member
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
|