Skip to main content

CancelClose

Use this command to prevent a Data Grid or HTML window from closing when a user clicks the window close button (the x in the top-right of the window’s title bar) in a Longview Data Grid or HTML window of a Longview App. For information on specifying close behavior, see OnClose.

Syntax:

CANCELCLOSE

Syntax example:

Set VARIABLE ExitOption = ShowPrompt("Would you like to save your changes before closing?", "YesNoCancel")

If "$ExitOption$" EQ "YES"

//Upload changes to DataArea and Close

Upload DataArea1

End If

If "$ExitOption$" EQ "Cancel"

//Cancel the Close action

CancelClose

End If

Was this article helpful?

We're sorry to hear that.