?
Solved

how to restrict password

Posted on 2008-06-10
1
Medium Priority
?
708 Views
Last Modified: 2013-12-26
how to restrict the password entry to be alphanumeric and should contain atleast one special characters using powerbuilder. Password length is already restricted from 6 to 10 chars,

thanks

shaju
0
Comment
Question by:Shaju Kumbalath
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 14

Accepted Solution

by:
sandeep_patel earned 750 total points
ID: 21752002
use Match function as below

string ls_pwd
boolean lb_return
lb_return = Match(ls_pwd,"[~`!@#$%^&]")
If Not lb_return Then
     Messagebox('Invalid','Password must contain atleast one special character')
     Return 1
End If

You can include other characters in above pattern if you want them in password.

Regards,
Sandeep


0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question