Allows you to enumerate the sub-elements of a project element. This function can be run even if the element is not opened.
In a loop, this function can be used to enumerate the controls found in a window (or in a page) of a project.
Remark: This function cannot be used on the reports or on the queries.
Syntax
<Result> = EnumSubElement(<Element> [, <Option>])
<Result>: Character string
- Full name of element found (<Window/Page Name>.<Control Name> for example),
- Empty string ("") if no element was found.
<Element>: Character string (with quotes)
Full name of element to enumerate. For a control, this parameter has the following format: <Window/Page Name>.<Control Name> ("MyWindow.MyTable" for example).
<Option>: Optional constant
Parameter that must be specified during the first call to the function (to start the enumeration). This parameter is not required to continue the enumeration. | |
enumSideBar | Enumerates the panes found in a sidebar.
|
enumGroup | Enumerates the groups found in a window or in a page |
enumContextualMenu | Enumerates the popup menus found in a window.
|
enumMainMenu | Enumerates the drop-down menus found in a window. You also have the ability to use EnumMenu. |
enumFirst | Initializes the enumeration |
enumPane | Enumerates the panes found in the tabs or ribbons.
|
Caution: the following combinations must be used to initialize the browse:- enumFirst to enumerate the controls found in a window or in a page
- enumFirst + enumGroup to enumerate the groups found in a window or in a page
- enumFirst + enumPane to enumerate the panes found in a tab or in a ribbon
- enumFirst + enumContextualMenu to enumerate the popup menus
- enumFirst + enumSideBar to enumerate the panes found in a sidebar
- enumFirst + enumMainMenu to enumerate the main menus of a window or page
Remarks
This function cannot be used to enumerate the sub-elements of an element found in a component.
Business / UI classification : Neutral code