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
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.
Summary: Don't forget a major drawback of all convenience languages: they rely heavily on massively safety-checked libraries of pre-conjured routines. VB.Net, like COM-based VB before it, can go compiled, but ...
Summary: You just need to focus your search appropriately. VB.Net, like VB before it, is just the language syntax you are using; you need to work with the particular library that supports databases. For the .N...