|
|
|
|
|
ExecuteAncestor (Function) In french: ExécuteAncêtre When the code is overridden, it is used to run the event of the template corresponding to the event of the current control. For example: Remarks ExecuteAncestor is automatically inserted into the code if a template control code is overridden. This function can be moved or removed from the code. If an event exists in the template window, this event appears twice in the window that uses the template. Indeed, the following elements are displayed: - the event from the template. This event appears in gray and its caption is followed by "(<Template name> template)".
- the event of the window/page.
This function should not be used in events associated with the window or page (initialization code, opening code, closing code, etc.), because the ancestor codes are automatically run in a specific order. The code entered in one of the events of the page will be run as follows: - the "Global declarations" event is merged between the template and the page (or window) that uses the template. Therefore, variables with the same name must not be used in this event.
- for all the events (except the page/window closing event):
- template events applied to the page (or window) are executed in the order in which the templates are included in the page (or window),
- then the event corresponding to the page (or window) is run.
- for the page (or window) close event: the event is executed, then the template events applied to the page (or window) are executed in the Reverse order of template inclusion in the page (or window).
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|