Previous Topic

Next Topic

Inhoudsopgave

Book Index

btnCancel.OnClickEvent Event

Event Event btnCancel.OnClickEvent: String

Description

Specifies the name of the procedure which is evaluated after clicking the Cancel button.

Code Snippet

Use the btnCancel Procedure to create a reference to the Cancel button of the Process form:

Set btnCancel = frmProcess.btnCancel

The Cancel button must be linked to the current script:

btnCancel.Script = Script

Link the OnClick event to a script procedure:

btnCancel.OnClickEvent = "OnClickButtonCancel"

Implement the OnClickButtonCancel event handler. Use the btnCancel.OldClick method to start the original process:

Sub OnClickButtonCancel

Rem code before OldClick here...

btnCancel.OldClick

Rem code after OldClick here...

End Sub