Function DidCancel detects whether the Cancel button in a predefined dialog was pressed. DidCancel is intended for use with conditional statements to signal that a cancel event has occurred.
FUNCTION DidCancel : BOOLEAN;def vs.DidCancel():
return BOOLEANresultOK := DidCancel;import vs
# Function DidCancel detects whether the Cancel button in a predefined dialog
# was pressed.
ok = vs.DidCancel()
if ok:
vs.Message('DidCancel succeeded')
else:
vs.Message('DidCancel failed')Availability: from All Versions