App.ConfirmPassword
The Confirm Password function is used to display the standard Confirm Password dialog box (see Define the Password for a User in the ClearSCADA Guide to Security). When the user enters their password, ClearSCADA compares that password to the password of the logged on user’s account. If the passwords are the same, the ConfirmPassword function returns True; if they are different, an error message is displayed. The ConfirmPassword function only returns False if the user selects the Cancel button.
Syntax |
App.ConfirmPassword ( ) |
Description |
Displays the standard Confirm Password dialog box. This can be used to compare an entered password to the password of the currently logged on user. |
Arguments |
None. |
Returns |
Returns a Boolean value. This is True if the password matches the password of the currently logged on user’s user account. If the password does not match that of the user account, an error message is displayed. ConfirmPassword only returns False if the user selects the Cancel button on the Confirm Password dialog box. |
Example:
- If App.ConfirmPassword() Then
- ' Do action, e.g. issue control
- End If
NOTE: In this example, the ' Do action’ comment indicates the part of the script where you would define the action to be taken, such as issue a control to a point.