|
|
|
|
|
TreeGetIndex (Function) In french: ArbreRécupèreIndice
Warning
From version 28 (75), TreeGetSubscript is kept for backward compatibility. This function has been replaced with TreeGetIndex.
Returns the index of an element (node or leaf) in a TreeView control. Note: This function can be used, for example, to retrieve the index for calling properties on the line of a TreeView control, using the syntax: TreeView_control[Index].<Property Name> = ...
nIndice is int
nIndice = TreeGetIndex(ARBRE_Arbre1, "Racine" + TAB + "Noeud" + TAB + "Feuille")
IF nIndice > 0 THEN
IF ARBRE_Arbre1[nIndice] = -1 THEN
TreeExpand(ARBRE_Arbre1, "Racine" + TAB + "Noeud" + TAB + "Feuille")
END
ARBRE_Arbre1[nIndice].Couleur = DarkRed
END
Syntax
<Result> = TreeGetIndex(<TreeView control> , <Element path>)
<Result>: Integer - Index of the found element.
Please note: Node manipulation is only possible if the node is visible (i.e. unrolled). - -1 if the element does not exist.
<TreeView control>: Control name Name of the TreeView control to be used. <Element path>: Character string Full path of the element to be used. This parameter has the following format:
"<Root name>" + TAB + ["<Name of 1st node>" + TAB + ... ["<Name of 2nd node>" + TAB + [...]]]"<Leaf name>" If there are two elements with the same name in the path, you can add the IDs of the elements (after their names using TreeID).
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|