PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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 using 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 event "Global declarations" 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):
    • the events of templates applied to the page (or window) are run in the order in which they were included in the page (or window),
    • then the event corresponding to the page (or window) is run.
  • for the the page/window closing event: the event is run, then the events of templates applied to the page (or window) are run in the reverse order in which they were included in the page (or window).
Component : wd240.dll
Minimum required version
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment