|
|
|
|
|
TableTypeItem (Function) In french: TableTypeElément Checks the existence of an element in a treeview table and returns its type (node or leaf) if the element exists.
// 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:
| | taError | The specified element does not exist. | taLeaf | The specified element is a leaf. | taNode | The 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:
| | taError | The specified element does not exist. | taLeaf | The specified element is a leaf. | taNode | The 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
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|