This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

PasswordBox Method (Macro)

Hi All,

According to the doco  the PasswordBox method returns an error if user presses Cancel.

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 screen. This method returns an error if the user clicks Cancel.

https://www.microfocus.com/documentation/infoconnect-desktop/17-0/vba-guide/Attachmate.Reflection.Objects.Emulation.Common~Attachmate.Reflection.Objects.Emulation.Common.Macro~PasswordBox.html

Any ideas as to how to trap the error if the user presses Cancel? I just get a zero-length string returned.

What I am trying to do is determine if the user pressed cancel or entered a blank password and pressed Ok and make a decision on that..

Any ideas appreciated.

Cheers

Steve

Tags:

Labels:

Reflection