PdcApplication.ActiveObjectIsCancelClicked
Jump to navigation
Jump to search
Declaration
ActiveObjectIsCancelClicked as Boolean
Description
Returns if in the active object the cancelbutton is clicked
Notes
This property is especially useful in user exits on closing forms. When the user closes the form using the cancel button, the code may not need to be executed.
Code example
In userexit SCR_BEFORECALCCLOSE the script does not continues when the form is closed using the cancel button.
dim objCalc
dim strUserFieldValue
dim booGoOn
set objCalc = pdc.ActiveCalculation
if IsValid(objCalc) then
if pdc.ActiveObjectIsCancelClicked then
'Exit script booGoOn = false
else
'Run script booGoOn = true
end if
end if
Availability
Available since June 2006 (From version 3.7).