InfoConnect API Guide
Attachmate.Reflection.Emulation.Common Namespace / Macro Class / PasswordBox Method
The prompt string for the dialog box.
The dialog box caption.
Example


In This Topic
    PasswordBox Method (Macro)
    In This Topic
    Displays a prompt for the Password dialog box.
    Syntax
    'Declaration
     
    
    Public Function PasswordBox( _
       ByVal prompt As String, _
       ByVal title As String _
    ) As String
    'Usage
     
    
    Dim instance As Macro
    Dim prompt As String
    Dim title As String
    Dim value As String
     
    value = instance.PasswordBox(prompt, title)
    public string PasswordBox( 
       string prompt,
       string title
    )

    Parameters

    prompt
    The prompt string for the dialog box.
    title
    The dialog box caption.

    Return Value

    The string entered in the dialog's text box.
    Example
    class Program
    {
      private Macro mac;
      private string password;
      
      public string GetPassword()
      {
        password = mac.PasswordBox("Prompt","Macro");
        return password;
      }
    }
    See Also