dialog.getPassword

Syntax dialog.getPassword (prompt, adr)

Params prompt is a string to be displayed in the dialog.

adr is the object database location where the user's password will be stored as a string.

Action Displays a dialog containing prompt, a text input field,

and two buttons, one labeled "OK" and the other labeled "Cancel."

The initial contents of adr, if any, are not used.

The password is displayed as asterisks or bullets.

It then waits for the user to click on one of the buttons.

If the user clicks on "OK," it transfers the password to adr.

If the user clicks "Cancel," the original contents of adr are left unchanged.

Returns True when the user clicks on OK, false if cancelled

Examples dialog.getPassword ("Password:", @temp.x)

   » true

Object database location temp.x contains user's typed password.

Notes This verb is new in Frontier 5.1.

See Also dialog.ask

string.getRandomPassword

Discuss