PC SOFT

AYUDA EN LÍNEA
DE WINDEV, WEBDEV Y WINDEV MOBILE


  • Belonging of controls
  • Case of dynamic tabs
  • WLanguage error
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Otros
Procedimientos almacenados
EnumControl (Function)
 
Returns the name of Nth control found in the specified element. This element must be displayed.
Note: In most cases, we recommend that you use gpwEnumControl that lists all controls directly.
WINDEVWINDEV Mobile The specified element can be a window, a report, a group of controls, a tab, a looper or a supercontrol. The Toolbar controls and the SideBar controls are not supported.
WEBDEV - Código Servidor The specified element can be a page, a report, a group of controls, a looper, a looper break, a cell or a supercontrol.
Versiones 15 y posteriores
Android This function is now available for the Android applications.
Nueva funcionalidad versión 15
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
In a loop, this function is used to enumerate the controls found in an element.
Versiones 17 y posteriores
iPhone/iPad This function is now available for the iPhone/iPad applications.
Nueva funcionalidad versión 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versiones 18 y posteriores
Universal Windows 10 App This function is now available in Windows Store apps mode.
Widget Android This function is now available in Android Widget mode.
iPhone/iPad This function is now available for the reports in the iPhone/iPad applications.
Nueva funcionalidad versión 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Widget Android This function is now available in Android Widget mode.
iPhone/iPad This function is now available for the reports in the iPhone/iPad applications.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Widget Android This function is now available in Android Widget mode.
iPhone/iPad This function is now available for the reports in the iPhone/iPad applications.
Versiones 21 y posteriores
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Nueva funcionalidad versión 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Ejemplo
WINDEVReportes y ConsultasWindows MobileUniversal Windows 10 AppJavaCódigo de Usuario (UMC)
// Name of control 7 in the "WIN_EditWindow" window
ResControl = EnumControl(WIN_EditWindow, 7)
WINDEVReportes y ConsultasWindows MobileJavaCódigo de Usuario (UMC)
// Fill a combo box with the list of window controls
i is int = 1
ResControl is string
ResControl = EnumControl(WIN_EditWindow, i)
WHILE ResControl <> ""
i++
ListAdd(LIST_ControlList, ResControl)
ResControl = EnumControl(WIN_EditWindow, i)
END
WEBDEV - Código ServidorAjax
// Name of control 7 in the "PAGE_MyPage" page
ResControl = EnumControl(PAGE_MyPage, 7)
WEBDEV - Código ServidorAjax
// Fill a combo box with the list of page controls
i is int = 1
ResControl is string
ResControl = EnumControl(PAGE_MyPage, i)
WHILE ResControl <> ""
i++
ListAdd(LIST_ControlList, ResControl)
ResControl = EnumControl(PAGE_MyPage, i)
END
Sintaxis
<Result> = EnumControl(<"Parent" Object> , <Control Number> [, <Type of Enumeration>])
<Result>: Character string
  • Name of control found,
  • Empty string ("") if no control was found.
<"Parent" Object>: Character string
Name of "parent" object (containing the control). This parameter corresponds to the name of a window, looper, looper break, group, tab, supercontrol or report.
If the "parent" object is a tab, the following notation must be used: <Tab Name>[<Pane Number>]. For example: Tab1[2].
WEBDEV - Código Servidor Name of "parent" object (containing the control). This parameter corresponds to the name of a page, report, group of controls, looper, looper break, cell or supercontrol.
<Control Number>: Integer
Number of the control whose name is requested. Each control is associated with a number. This number corresponds to:
  • the creation order of the controls (by default) if the type of enumeration is performed by the byCreationOrder constant
  • the tab order (which means the order in which the controls take focus in the "parent" object) if the type of enumeration is performed with the byTabOrder constant.
    The F5 key is used to see the navigation order in the window editor and in the page editor
<Type of Enumeration>: Optional Integer constant
Order in which the enumeration is performed:
byZOrderEnumeration performed according to the z-order position of controls, from the lowest one to the highest one.
byCreationOrder
(Default value)
Enumeration performed according to the creation order of controls (in the editor or by ControlClone).
byTabOrderEnumeration performed according to the navigation order with the tab key (Tab). The controls that are not accessible with the tab key (Tab) are listed at the end.

WEBDEV - Código Servidor This parameter is not available.
Observaciones

Belonging of controls

Only the controls that directly belong to the specified "parent" object are enumerated.
For example, if <"Parent" object> corresponds to the name of a window (or page), EnumControl only works for the controls that directly belong to this window (or to this page). EnumControl cannot be used to retrieve the names of the controls belonging to the tabs or to the supercontrols of this window (or page).
Versiones 20 y posteriores
WINDEV

Case of dynamic tabs

If <"Parent" Object> corresponds to the name of a Tab control with dynamic panes, the aliases of the dynamic panes are enumerated.
Nueva funcionalidad versión 20
WINDEV

Case of dynamic tabs

If <"Parent" Object> corresponds to the name of a Tab control with dynamic panes, the aliases of the dynamic panes are enumerated.
WINDEV

Case of dynamic tabs

If <"Parent" Object> corresponds to the name of a Tab control with dynamic panes, the aliases of the dynamic panes are enumerated.

WLanguage error

A WLanguage error occurs if:
  • <Control Number> is negative.
  • <Control Number> is greater than the number of controls found in <"Parent" Object> +1. This is used to avoid the endless loops.
  • <"Parent" Object> is not a window, a page, a report, a group, a tab or a supercontrol.
Componente : wd240vm.dll
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
USE
gpwEnumControl (Function)

Mesmo não tendo o uso do gwplogin ou a instalação do groupware esse comando é independente e funciona melhor.
BOLLER
14 05 2019