Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 759 Bytes

File metadata and controls

37 lines (29 loc) · 759 Bytes

DidCancel

Description

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 BOOLEAN

Examples

SimpleDialog

resultOK := 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')

Version

Availability: from All Versions

Category