Cancel Property

Example   Applies To   See Also

Specifies whether a CommandButton or OLE Container control is the Cancel button; that is, if the user presses the ESC key, the Cancel button's Click event will occur. Available at design time and run time.

Syntax

Object.Cancel[ = lExpr]

Settings

lExpr

The settings for the Cancel property are:

Setting Description
True (.T.) The CommandButton or OLE Container control is the Cancel button.
False (.F.) (Default) The CommandButton or OLE Container control is not the Cancel button.

Remarks

The Cancel property applies only to an OLE Container control that contains an "Acts like a Button" ActiveX control (.ocx).