Programming with Reflection

image\rwnprg32.gif PasswordBox method

 

Syntax Password = object.PasswordBox(Prompt, Title)

 

Description

Opens a dialog box containing a prompt and a text box for user input, and returns the contents of the text box after the user clicks OK. The text entered into the text box appears as asterisks on screen. This method returns an error if the user clicks Cancel.

Arguments

Prompt Argument type: String
The text to be shown in the dialog box. The string limit is 260 characters, however strings will automatically be truncated in the dialog box display if they extend beyond the length of the box.

Title Argument type: String
The text to appear in the dialog box title bar. The string limit is 260 characters, however strings will automatically be truncated in the dialog box display if they extend beyond the length of the title bar.

Return

Password Return type: String
The text entered into the input box.

 

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command