Computing.Net > Forums > Programming > vb.net Like operator

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

vb.net Like operator

Reply to Message Icon

Name: donever
Date: June 1, 2009 at 10:32:36 Pacific
OS: windows pro x64
CPU/Ram: athlon 4g
Product: Custom / CUSTOM BUILD
Subcategory: C/C++
Comment:

hi all. I'm trying to use the like operator to allow user to user to enter password. this would be acceptable.

If strInputPassword Like "*[0-9]*" AndAlso strInputPassword Like "*[a-z]*" _
AndAlso strInputPassword.IndexOf(" ").Equals(-1) Then

Return TrueVariable
Else
Return FalseVariable
End If


only number between 0-9 and alphabet a-z and no space allow will return true. If I enter # and different character too it will return true. How can avoid return true if @#$%... is entered. thank you.



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


running batch files withi... switch & bool question



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: vb.net Like operator

How to check email VB.net (pop, msn www.computing.net/answers/programming/how-to-check-email-vbnet-pop-msn/4613.html

Which is faster, VB .NET or Visual C++ ? www.computing.net/answers/programming/which-is-faster-vb-net-or-visual-c-/2415.html

I need some major VB.Net help www.computing.net/answers/programming/i-need-some-major-vbnet-help/3702.html