Programming with Reflection
GetPassword
method
Syntax Password = object.GetPassword(Prompt, HostUserName, HostName, Options)
This method opens a Password dialog box that prompts for a password and returns the value entered by the user. For example, the following expression returns the password for the user named "Joe" on the host called "MyHost"; a dialog box with the prompt "Please enter your password" opens.
Session.GetPassword("Please enter your password.", "", "", "")
Prompt Argument type: String
The prompt that appears if a dialog box is open.
HostUserName Argument type: String
This argument is not currently used. Use an empty string ("").
HostName Argument type: String
This argument is not currently used. Use an empty string ("").
Options Argument type: String
This argument is not currently used. Use an empty string ("").
Password Return type: String
The returned password. This value is not encrypted.
Note: This method was formerly used to access login information in a Reflection Admit One database. Starting with version 8.0, Admit One is no longer supported. You can still use this method to prompt for a password; see also the PasswordBox method.