ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Miscellaneous WINDEV functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
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:
Run the event of the template
Syntax
ExecuteAncestor()
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).
Component: wd300.dll
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/30/2024

Send a report | Local help