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 TreeView
  • A collapsed or expanded node can be visible or not
  • Selection bar
  • Runtime speed
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 state of a node in a TreeView Table control: rolled up, unrolled or non-existent.
Reminder At runtime, a node is unrolled when the "-" sign precedes the node name.
Ejemplo
// Status of a node
SWITCH TableItemStatus(TVT_Schedule, "Root" + TAB + "Node" + TAB + "Leaf2")
	CASE taError: Trace("The node does not exist.")
	CASE taExpanded: Trace("The node is unrolled.")
	CASE taCollapsed: Trace("The node is wound.")
END
Sintaxis

Status of a node by specifying the row number Ocultar los detalles

<Result> = TableItemStatus(<TreeView Table control> [, <Row number>])
<Result>: Integer constant
Status of specified node:
taCollapseThe node is collapsed
taErrorNode not found
taExpandThe node is expanded
<TreeView Table control>: Control name
Name of the TreeView Table control to be used.
<Row number>: Optional integer
Number of the row containing the node to use. If this parameter is not specified, the status of the node found in the current row is returned.

Status of a node by specifying its name Ocultar los detalles

<Result> = TableItemStatus(<TreeView Table control> [, <Node name>])
<Result>: Integer constant
Status of specified node:
taCollapseThe node is collapsed
taErrorNode not found
taExpandThe node is expanded
<TreeView Table control>: Control name
Name of the TreeView Table control to be used.
<Node name>: Optional character string
Name of node to use. This parameter has the following format:
"<Root name>" + TAB + ["<Name of 1st node>" + TAB + ...
["<Name of 2nd node>" + TAB + [...]]]"<Leaf name>"
A WLanguage error occurs if this parameter does not correspond to an existing branch.
If this parameter is not specified, the status of the node found in the current row is returned.
Observaciones

A collapsed or expanded node can be visible or not

The status returned corresponds to the internal status of the element. An expanded element is not necessarily visible because one of its parents may be collapsed.
For example: If the node "Recipes" + TAB + "Desserts" is rolled up, the node "Recipes" + TAB + "Desserts" + TAB + "Ice cream" can be rolled up or unrolled.

Selection bar

TableItemStatus does not change the position of the selection bar.

Runtime speed

The runtime speed of syntax 1 is faster than the runtime speed of syntax 2.
Clasificación Lógica de negocio / UI: Código UI
Componente: wd300obj.dll
Versión mínima requerida
  • Versión 11
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