Programming with Reflection

image\rwnprg32.gif GetPassword method

 

Syntax Password = object.GetPassword(Prompt, HostUserName, HostName, Options)

 

Description

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.", "", "", "")

Arguments

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 ("").

Return

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.

 

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command