BillA603
6 years agoContributor
InputBox: How to tell if Cancel selected
I am invoking the BuildIn InputBox to get user input from my TestComplete 12.5 Vbscript.
The InputBox dialog has 2 buttons: OK and Cancel and I would like a way for the user to abort the script execution. I thought the Cancel button might work, but the dialog behavior seems to be the same no matter which button is clicked. the typed value or default value gets returned. I cannot find documentation indicating how to determine which button was clicked.
Does anyone know how to tell if the user clicks Cancel?
Thanks