PASSPORT Knowledge Base
Macros

Date Published: April 9, 2010

Title

Dialog Box With Password Input

Macro Type

.ZMC

Description

This macro will demonstrate how to display a dialog box and prompt for a password, which is masked (hidden) when the user types. The password is saved in a variable, which may be used to perform some other function.

Sample Code


Sub ZMain()
strPassword=MsgBoxGetPassword("Please enter your password:")
MsgBox "Your password is: "& strPassword
End Sub

More Information