PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Example for using the EnumElement function
EnumElement (Example)
Example for using the EnumElement function
This example is used to list the elements of a project.
Trace("-- List of project elements")

ElementName is string
ElementName = EnumElement(enumAll)
WHILE ElementName <> ""
EnumRecursive(ElementName)
ElementName = EnumElement()
END
// --- Recursive procedure called by the code for enumerating the elements

PROCÉDURE EnumRecursive(NameEnumElement)

Trace("--------------Enumeration:"+NameEnumElement+" --------------------")

SubElementName is string
SubElementName = EnumSubElement(NameEnumElement, enumFirst)
WHILE SubElementName <> ""
Trace("-", SubElementName)
EnumRecursive(NameEnumElement + "." + SubElementName)
SubElementName = EnumSubElement(NameEnumElement)
END
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment