|
|
|
|
|
gpwEnumControl (Function) In french: gpwEnumèreChamp
Warning
From version 25, this function is kept for backward compatibility. It is recommended to use EnumControl, which offers more possibilities..
Enumerates the controls found in a window or page. Remarks: - 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.
PROCEDURE EnumereChampFils(sNomParent is string)
nIndice is int = 1
sNomChampFils is string
sInfoChamp is string = gpwEnumèreChamp(sNomParent, nIndice)
WHILE sInfoChamp <> ""
Trace(sInfoChamp)
sNomChampFils = ExtractString(sInfoChamp, 1, TAB)
Trace(sNomChampFils)
nIndice++
sInfoChamp = gpwEnumControl(sNomParent, nIndice)
END
Syntax
<Result> = gpwEnumControl(<Parent element> , <Index>)
<Result>: Character string - Characteristics of control found. These characteristics have the following format:
<Nom complet du champ> + TAB + <Nom complet du parent> + TAB + ... <Type> + TAB + <Type en clair> + TAB + <Libellé> where: - <Nom complet du champ> Full name of the field found.
- <Nom complet du parent> Full name of field parent (empty string for a window).
- <Type>: field type identifier (property Type).
- <Type en clair> Type of readable field (e.g. "Button", "Elevator", ...).
- <Libellé>: Field label.
- "" (empty string) if the enumeration is ended.
<Parent element>: Character string Name of the "parent" object (containing the control). This parameter corresponds to the name of a window or page. <Index>: Integer Index of the control to enumerate. Each control is associated with a number. This number corresponds to the order in which the controls have been created.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|