Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cancel button - sdlginput 1

Status
Not open for further replies.

divod

Technical User
Mar 22, 2005
6
US
How do you program a response to a user choosing Cancel on the sdlginput command?
 
You need to use the dlgevent command to look for events matching the dialog ID of the Cancel button. If you look at the discussion of the dlgevent command in the ASPECT help file, there is an example script that should get you started.


 
Never mind that initial response, what you want to do is use a structure like this:

if sdlginput ...
user pressed OK
else
user pressed Cancel
endif

If the user does not click the OK button, the else clause will be executed and you can perform whatever necessary commands there.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top