How to set the initial value of password in ask password?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
epub
Posts: 3
Joined: Wed May 11, 2011 12:41 pm

How to set the initial value of password in ask password?

Post by epub » Thu Jan 12, 2012 11:26 am

Hello,

I would like to know if there is a command to set the initial value of password in ask password command?

like -- set password to "mypassword" ? but this one is not correct.
ask password clear "Please type your password:" titled "Edit password"

Thanks in advance.

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: How to set the initial value of password in ask password

Post by sturgis » Thu Jan 12, 2012 3:54 pm

This will do what you want.

Code: Select all

ask password "Enter the password" with "whateverinitialvalue"  
Also be aware that the value will be encrypted. If you just need a cleartext value use the keyword clear, otherwise see the example in the comments at the bottom of the dictionary entry for more info.
epub wrote:Hello,

I would like to know if there is a command to set the initial value of password in ask password command?

like -- set password to "mypassword" ? but this one is not correct.
ask password clear "Please type your password:" titled "Edit password"

Thanks in advance.

Post Reply