PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
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
Used to enumerate the project elements: windows, pages, reports, queries, ... In a loop, this function can be used to enumerate the project elements.
WEBDEV - Server codeAjax
// Enumerate the pages of a project
PageName is string = EnumElement(enumPage)
// Browse all the pages
WHILE PageName <> ""
// Go to the next page
PageName = 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.
Versions 18 and later
enumExternalComponent
New in version 18
enumExternalComponent
enumExternalComponent
Enumerates the public elements of an external component included in the project. The name of the component is specified in <Component name>.
enumReportEnumerates all project reports.
enumWindowEnumerates all project windows.
enumInternalWindowEnumerates all internal windows of project.
Versions 18 and later
enumGPU
New in version 18
enumGPU
enumGPU
Constant intended for the User Groupware.
enumReportTemplateEnumerates all the reports templates of the project.
enumWindowTemplateEnumerates all the window templates of the project.
enumPageTemplateEnumerates all the page templates of the project.
enumPageEnumerates all project pages.
enumDynamicPageEnumerates all dynamic pages of project.
enumInternalPageEnumerates all internal pages of project.
enumQueryEnumerates all project queries.
<Component name>: Character string (with quotes)
Versions 18 and later
Name of the component for which the public elements must be enumerated.
New in version 18
Name of the component for which the public elements must be enumerated.
Name of the component for which the public elements must be enumerated.
Component : wd260vm.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