PdcApplication.ActiveObjectIsCancelClicked: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
== Declaration == | == Declaration == | ||
ActiveObjectIsCancelClicked as Boolean | |||
== Description == | == Description == | ||
Returns if in the active object the cancelbutton is clicked | |||
== Notes == | == 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 == | == Code example == | ||
In userexit SCR_BEFORECALCCLOSE the script does not continues when the form is closed using the cancel button. | |||
<source lang="vb"> | <source lang="vb"> | ||
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 | |||
</source> | </source> | ||
== Availability == | == Availability == | ||
Available since June 2006 (From version 3.7). |
Latest revision as of 11:29, 21 May 2012
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).