ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / TreeView Table functions
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
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help