AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones Tabla
  • WLanguage procedure
  • Interrupting <TreeView Table>.ListChild
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Lists the "children" of a node and the "child" elements of these "children" in a TreeView Table control. A WLanguage procedure is called whenever a "child" element is found.
Ejemplo
// List the "children" of "Desserts" node in the "TVT_RecipeTV" TreeView Table control
// The "ExpandAll" procedure is called for each "child" element found in the "Desserts" node
nNbDesserts is int
nNbDesserts = TVT_RecipeTV.ListChild("Recipes" + TAB + "Desserts", "ExpandAll")
Sintaxis

Listing the children of a branch identified by its path Ocultar los detalles

<Result> = <TreeView Table control>.Threadlist(<Element name> , <WLanguage procedure> [, <Custom parameter>])
<Result>: Integer
Number of listed elements.
<TreeView Table control>: Control name
Name of the TreeView Table control to be used.
<Element name>: Character string
Name of the element to be used. This parameter has the following format:
"<Root name>" + TAB + ["<Name of 1st node>" + TAB + ...
["<Name of 2nd node>" + TAB + [...]]]"<Element name>"
A WLanguage error occurs if this parameter does not correspond to an existing element.
<WLanguage procedure>: Procedure name
Name of WLanguage procedure that will be called whenever a "child" element is found.
<Custom parameter>: Optional integer
Parameter passed to the procedure <Procedure name>.

Listing the children of a branch identified by its index Ocultar los detalles

<Result> = <TreeView Table control>.Threadlist(<Row number> , <WLanguage procedure> [, <Custom parameter>])
<Result>: Integer
Number of listed elements.
<TreeView Table control>: Control name
Name of the TreeView Table control to be used.
<Row number>: Integer
Number of the row corresponding to the branch to use.
<WLanguage procedure>: Procedure name
Name of WLanguage procedure that will be called whenever a "child" element is found.
<Custom parameter>: Optional integer
Parameter passed to <WLanguage procedure>.
Observaciones

WLanguage procedure

The <WLanguage procedure> is called whenever a "child" element is found. This procedure is a WLanguage procedure.
This procedure must be declared as follows:
PROCEDURE <WLanguage procedure> (<TreeView Table control>, <Child branch>,..
<Element>, <Level>, <Optional parameter>)
The different parameters are as follows:
  • <TreeView Table control> (character string):
    Name of the TreeView Table control to be used.
  • <Child branch> (character string):
    Full path of "child" found (without the name) or an empty string ("") if it is the root of TreeView Table control. This parameter always ends with the "TAB" separator. This parameter will be initialized and filled whenever the procedure is called.
  • <Element> (character string):
    Name of the element found. This parameter will be initialized and filled whenever the procedure is called.
  • <Level> (integer):
    Level of element found in relation to the initial search element:
    1. Direct child
    2. Grand child
    3. ...
  • <Optional parameter> (integer):
    Value passed in <Custom parameter> of <TreeView Table>.ListChild. If <Custom parameter> is not specified, <Custom parameter> corresponds to the NULL constant.
Note: This procedure can be a internal procedure.

Interrupting <TreeView Table>.ListChild

<TreeView Table>.ListChild cannot be interrupted as long as all "child" elements have not been browsed.
To force the interruption of the browse performed by <TreeView Table>.ListChild, use the following line of code in <WLanguage procedure>:
RETURN False
In this case, <TreeView Table>.ListChild returns the number of elements browsed until the call to "RESULT False".
Componente: wd300obj.dll
Versión mínima requerida
  • Versión 23
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

Señalar un error o enviar una sugerencia | Ayuda local