PasswordBox

<< Click to Display Table of Contents >>

Navigation:  Miscellaneous functions and statements >

PasswordBox

Description

Displays a prompt in a dialog box, waits for the user to input text or click a button, and returns the contents of the text box. The Input text is hidden and replaced by asterisk ‘*’.

Syntax

PasswordBox(prompt[, title][, default])

 

Parameters

Part

Type

Description

prompt

String

Required; String expression displayed as the message in the dialog box.

title

String

Optional; String expression displayed in the title bar of the dialog box. If you omit title, the application name is placed in the title bar.

default

String

String expression displayed in the text box as the default response if no other input is provided. If you omit default, the text box is displayed empty.

Remarks

If the user clicks OK or presses ENTER, the PasswordBox function returns whatever is in the text box. If the user clicks Cancel, the function returns a zero-length string ("").