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
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
Returns the "children" of an element (lower level) in a TreeView Table control.
Ejemplo
// First "child" of first node in the "TVT_RecipeTV" control
Res is int
Res = TVT_RecipeTV.GiveChild(1, taFirst)
WHILE Res <> -1
Trace(Res)
Res = TVT_RecipeTV.GiveChild(1, taNext)
END
// Recursive procedure used to list all children 
// of all parents from a row
PROCEDURE ListChildren(i=0)
j is int
// If no row number was passed as parameter,
// gets the index of selected row
IF i = 0 THEN i = TVT_MyTreeViewTable.Select()
j = TVT_MyTreeViewTable.GiveChild(i, taFirst)
WHILE j <> -1
	Info("Line: " + j + ", Code: " + COL_Code[j])
	// Call the procedure by specifying 
	// the current row number
	ListChildren(j)
	j = TVT_MyTreeViewTable.GiveChild(i, taNext)
END
Sintaxis

Returning the child of an element by specifying the row number Ocultar los detalles

<Result> = <TreeView Table control>.GetChild(<Row number> , <Child>)
<Result>: Integer
  • Number of the row for the "child" that was found,
  • -1 if no "child" is found.
<TreeView Table control>: Control name
Name of the TreeView Table control to be used.
<Row number>: Integer
Number of the row containing the branch to use.
<Child>: Constant
Indicates the requested "child".
taFirstFirst child element.
taNextNext child element.

Returning the child of an element by specifying its name Ocultar los detalles

<Result> = <TreeView Table control>.GetChild([<Element name>, ] <Child>)
<Result>: Integer
  • Number of the row for the "child" that was found,
  • -1 if no "child" is found.
<TreeView Table control>: Control name
Name of the TreeView Table control to be used.
<Element name>: Optional 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.
<Child>: Constant
Indicates the requested "child".
taFirstFirst child element.
taNextNext child element.
Observaciones
The runtime speed of syntax 1 is faster than the runtime speed of syntax 2.
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