Skip to main content
Version: 19

On Unload

CodeCan be called byDefinition
244D View Pro Area - 4D Write Pro area - Button - Button Grid - Check Box - Combo Box - Dropdown list - Form - Hierarchical List - Input - List Box - List Box Column - Picture Button - Picture Pop up menu - Plug-in Area - Progress Indicators - Radio Button - Ruler - Spinner - Splitter - Stepper - Subform - Tab control - Web AreaThe form is about to be exited and released


This event is triggered when the form is being exited released.

All the objects of the form (from any page) whose On Unload object event property is selected will have their object method called. Then, if the On Unload form event property is selected, the form will have its form method called.

The On Load and [On Unload] events are generated for objects if they are enabled for both the objects and the form to which the objects belong. If the events are enabled for objects only, they will not occur; these two events must also be enabled at the form level.


The On Unload event is generated when the subform is closing (this event must also have been activated at the parent form level in order to be taken into account). The event is generated before those of the parent form. Also note that, in accordance with the operating principles of form events, if the subform is placed on a page other than page 0 or 1, this event will only be generated when that page is closed (and not when the form is closed).

See also

On Load