Attachmate Reflection 2014 .NET API Reference
PasswordBox Method (IMacro)


The prompt string for the dialog box. The string limit is 260 characters; however, strings are automatically truncated in the dialog box display if they extend beyond the length of the box.
The dialog box caption. The string limit is 260 characters; however, strings are automatically truncated in the dialog box display if they extend beyond the length of the title bar.
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 the screen.
Syntax
'Declaration
 
Function PasswordBox( _
   ByVal prompt As String, _
   ByVal title As String _
) As String
'Usage
 
Dim instance As IMacro
Dim prompt As String
Dim title As String
Dim value As String
 
value = instance.PasswordBox(prompt, title)
string PasswordBox( 
   string prompt,
   string title
)

Parameters

prompt
The prompt string for the dialog box. The string limit is 260 characters; however, strings are automatically truncated in the dialog box display if they extend beyond the length of the box.
title
The dialog box caption. The string limit is 260 characters; however, strings are automatically truncated in the dialog box display if they extend beyond the length of the title bar.

Return Value

The string entered in the dialog text box. If the user clicks Cancel, an error is returned.
Requirements

Target Platforms: Microsoft Windows 7, Microsoft Windows Vista, Microsoft Windows XP, Microsoft Windows Server 2003 Terminal Services, Microsoft Windows Server 2008 Terminal Services

See Also

Reference

IMacro Interface
IMacro Members

Send Feedback