OnClose Property

Sets or returns the name of the macro to be run when the Close event occurs.

object.OnClose = [string]

Where object is an object expression that evaluates to one of the controls in the Applies To list, and string is a string expression specifying the script or macro to run when the Close event is triggered.

Client support

   Newlook Smartclient

   Newlook Server

Use

Occurs when a form is about to be removed from the screen. When that form is reloaded, the contents of all its controls are reinitialized.

This property is normally set for the App object in the Startup macro.

For the App object, this event occurs after the current form's close event has been triggered.

The Close event can be triggered by a CloseForm action in a macro, by the user choosing the Close command on a form's menu, exiting the application with the End Task button on the Windows Task List, exiting the Microsoft Windows operating environment while the application is running.

If the CancelEvent macro action is executed during this event for a form object, then the form will not be unloaded. The Close event will only be triggered for forms that have been loaded using the OpenForm action.

See Also

OnOpen property | CancelEvent action | CloseForm action | OpenForm action

Applies To

App object

Form object


© 2004-2021 looksoftware. All rights reserved.