|
|
|
|
Devuelve los "hijos" de un elemento (nivel inferior) en una control Tabla TreeView.
// 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("Row: " + j + ", Code: " + COL_Code[j]) // Call the procedure by specifying // the current row number ListChildren(j) j = TVT_MyTreeViewTable.GiveChild(i, taNext) END
Sintaxis
Devolver al hijo de un elemento especificando el número de fila Ocultar los detalles
<Result> = <TreeView Table control>.GetChild(<Row number> , <Child>)
<Result>: Integro - Número de la fila para el "niño" que se encontró,
- -1 si no se encuentra ningún "niño".
<TreeView Table control>: Nombre del control Nombre del control Tabla TreeView a manipular. <Row number>: Integro Número de la fila que contiene la rama a utilizar. <Child>: Constante Indica el "niño" solicitado. | | taFirst | Primer elemento hijo. | taNext | Siguiente elemento hijo. |
Devolver al hijo de un elemento especificando su nombre Ocultar los detalles
<Result> = <TreeView Table control>.GetChild([<Element name>, ] <Child>)
<Result>: Integro - Número de la fila del "niño" encontrado,
- -1 si no se encuentra ningún "niño".
<TreeView Table control>: Nombre del control Nombre del control Tabla TreeView a manipular. <Element name>: Cadena de caracteres opcional Nombre del elemento a utilizar. Este parámetro tiene el siguiente formato:
"<Root name>" + TAB + ["<Name of 1st node>" + TAB + ... ["<Name of 2nd node>" + TAB + [...]]]"<Element name>" Se produce un error de WLanguage si este parámetro no corresponde a un elemento existente. <Child>: Constante Indica el "niño" solicitado. | | taFirst | Primer elemento hijo. | taNext | Siguiente elemento hijo. |
Observaciones La velocidad de ejecución de la sintaxis 1 es más rápida que la de la sintaxis 2.
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|