AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones Tabla TreeView
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Checks the existence of an element in a treeview table and returns its type (node or leaf) if the element exists.
Example
// Type of element on row 3
// in the "TVT_RecipeTable" TreeView Table control
IF TableTypeItem(TVT_RecipeTable, 3) = taNode THEN
// Expand this node
TableExpand(TVT_RecipeTable, 3)
END
Syntax

Checking the existence of an element by specifying the row number Hide the details

<Result> = TableTypeItem(<TreeView Table control> [, <Row number>])
<Result>: Constant
Type of element:
taErrorThe specified element does not exist.
taLeafThe specified element is a leaf.
taNodeThe specified element is a node.
<TreeView Table control>: Control name
Name of the TreeView Table control to be used.
<Row number>: Optional integer
Number of the row containing the element to use. If this parameter is not specified, the type of the element found in the current row is returned.

Checking the existence of an element by specifying its name Hide the details

<Result> = TableTypeItem(<TreeView Table control> [, <Element name>])
<Result>: Constant
Type of element:
taErrorThe specified element does not exist.
taLeafThe specified element is a leaf.
taNodeThe specified element is a node.
<TreeView Table control>: Control name
Name of the TreeView Table control to be used.
<Element name>: Optional character string
Name of the element to test. 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.
If this parameter is not specified, the type of the element found in the current row is returned.
Remarks
The runtime speed of syntax 1 is faster than the runtime speed of syntax 2.
Business / UI classification: UI Code
Component: wd290obj.dll
Versión mínima requerida
  • Versión 11
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 26/05/2022

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