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 / Project functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
EnumElement (Function)
In french: EnumèreElément
Enumerates project elements: windows, pages, reports, queries, etc., ... In a loop, this function can be used to enumerate the project elements.
Reports and Queries
// Énumération des fenêtres d'un projet
NomFenêtre is string = EnumElement(enumWindow)
// Parcours de toutes les fenêtres
WHILE NomFenêtre <> ""
	// Passage à la fenêtre suivante
	NomFenêtre = EnumElement()
END
Syntax
<Result> = EnumElement([<Object to Enumerate> [, <Component name>]])
<Result>: Character string
  • Name of the element found,
  • Empty string ("") if no element was found.
<Object to Enumerate>: Optional constant
Parameter that must be specified during the first call to the function (to start the enumeration). To continue the enumeration, this parameter is not required.
enumAllEnumerates all project elements.
enumDynamicPageEnumerates all dynamic pages of project.
enumExternalComponentEnumerates the public elements of an external component included in the project. The name of the component is specified in <Component name>.
enumGPUConstant intended for the User Groupware.
enumInternalPageEnumerates all internal pages of project.
enumInternalWindowEnumerates all internal windows of project.
enumPageEnumerates all project pages.
enumPageTemplateEnumerates all the page templates of the project.
enumQueryEnumerates all project queries.
enumReportEnumerates all project reports.
enumReportTemplateEnumerates all the reports templates of the project.
enumWindowEnumerates all project windows.
enumWindowTemplateEnumerates all the window templates of the project.
<Component name>: Character string
Name of the component for which the public elements must be enumerated.
Component: wd300vm.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Listando objetos do Projeto
// Browse all the windows
WindowName = EnumElement(enumWindow)

WHILE WindowName <> ""

WindowName = EnumElement()

BufImagem = Screen_GetImageBuffer(Diretorio,WindowName)

Screen_AddElement(WindowName, "Window", BufImagem)

END

WindowName = ""


// Browse all the internal windows
InternalWindowName = EnumElement(enumInternalWindow)

WHILE InternalWindowName <> ""

InternalWindowName = EnumElement()

BufImagem = Screen_GetImageBuffer(Diretorio,InternalWindowName)

Screen_AddElement(InternalWindowName, "InternalWindow", BufImagem)

END

InternalWindowName = ""


// Browse all the report
ReportName = EnumElement(enumReport)

WHILE ReportName <> ""

ReportName = EnumElement()

BufImagem = ""

Screen_AddElement(ReportName, "Report", BufImagem)

END

ReportName = ""
BOLLER
06 May 2019

Last update: 03/27/2025

Send a report | Local help