Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Generate random alphanumeric password

Generate random alphanumeric password

Generate random alphanumeric password

How to generate random alpha numeric character in powerpuilder???

Please find the below source. Its working fine.

Randomize (CPU ())
string ls_disp, ls_code = ''
String ls_passval[70] = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','A','B','C','D','E','F','G','H','I','J','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','1','2','3','4','5','6','7','8','9','0'}
integer ls_limit
ls_limit = 10

DO WHILE (Len(ls_code) < ls_limit)
ls_code = ls_code + ls_passval[rand(65)+1]
ls_disp = ls_code

RE: Generate random alphanumeric password

It's working fine. Thanks for sharing!


"Nature forges everything on the anvil of time"

RE: Generate random alphanumeric password

it's working well .. and thnx for sharing your idea ..

also can you pls give same exampls to use it !!

thnx in all

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close