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
Enumerates the controls found in a window or page.
Notes:
  • This function is used by the user groupware to enumerate the controls whose status (invisible, grayed, inactive) can be modified by the user groupware.
  • This function can be used even if the user groupware is not enabled in the project.
Versions 19 and later
WEBDEV - Server codeWindows This function is now available for the WEBDEV sites in Windows.
New in version 19
WEBDEV - Server codeWindows This function is now available for the WEBDEV sites in Windows.
WEBDEV - Server codeWindows This function is now available for the WEBDEV sites in Windows.
Example
PROCEDURE EnumChildControl(sParentName is string)

// Browse the controls
nSubscript is int = 1
sNameChildControl is string
sControlInfo is string = gpwEnumControl(sParentName, nSubscript)
WHILE sControlInfo <> ""
Trace(sControlInfo)
// Retrieve the full name of the child control
sNameChildControl = ExtractString(sControlInfo, 1, TAB)
Trace(sNameChildControl)
// Next control
nSubscript++
sControlInfo = gpwEnumControl(sParentName, nSubscript)
END
Syntax
<Result> = gpwEnumControl(<Parent Element> , <Subscript>)
<Result>: Character string
  • Characteristics of control found. These characteristics have the following format:
    <Full Control Name> + TAB + <Full Parent Name> + TAB + ...
    <Type> + TAB + <Plain Type> + TAB + <Caption>

    where:
    • <Full Control Name>: Full name of the control found.
    • <Full Parent Name>: Full name of control parent (empty string for a window).
    • <Type>: identifier of control type (..Type).
    • <Plain Type>: Readable control type (for example, "Button", "Scrollbar", ...).
    • <Caption>: Caption of the control.
  • "" (empty string) if the enumeration is ended.
<Parent Element>: Character string (with or without quotes)
Name of "parent" object (containing the control). This parameter corresponds to the name of a window, page or report.
<Subscript>: Integer
Subscript of control to enumerate. Each control is associated with a number. This number corresponds to the order in which the controls have been created.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230gpu.dll
Linux wd230gpu.so
Minimum required version
  • Version 18
This page is also available for…
Comments
Click [Add] to post a comment