Dialog.PasswordInput

string Dialog.PasswordInput (

string Title,

string Prompt,

number Icon = MB_ICONNONE )

Description

Presents a "hidden input" dialog to collect a password from the user.

Note: Whatever the user types into this dialog will be hidden by asterisks, like this: *******

Parameters

Title

(string) The dialog title.

Prompt

(string) The text that will appear above the edit field.

Icon

(number) The icon to display on the dialog:

CONSTANT

VALUE

DESCRIPTION

MB_ICONNONE

0

None. (Default)

MB_ICONSTOP

16

Stop.

MB_ICONQUESTION

32

Question.

MB_ICONEXCLAMATION

48

Exclamation.

MB_ICONINFORMATION

64

Information.

Returns

(string) The text that was typed into the edit field if the OK button is pressed, or "CANCEL" if the Cancel button is pressed. If an error occurs, a blank string "" will be returned. You can use Application.GetLastError to determine whether this action failed, and why.

See also: Related Actions