|
|
|
|
|
- Retrieving the identifier of an element with management of duplicates
<TreeView>.Identifier (Function) In french: <Arbre>.RécupèreIdentifiant Returns the identifier associated with an element (node or leaf) in a TreeView control. Example of TreeView control:
// Return the identifier of "Desserts" node in the "TREE_TVRecipe" TreeView control Res = TREE_TVRecipe.Identifier("Recipes" + TAB + "Desserts")
Syntax
<Result> = <TreeView control>.GetIdentifier(<Element path>)
<Result>: Character string - Identifier of specified element,
- Empty string ("") if no identifier is associated with the element or if the element does not exist.
If the identifier (defined by <TreeView>.Add or <TreeView>.Modify) is not a character string but an integer, you may have to convert the result into an integer in order to handle this identifier ( Val).
<TreeView control>: Control name Name of the TreeView control to be used. <Element path>: Character string Full path of element to use. This parameter has the following format:
"<Root name>" + TAB + ["<Name of 1st node>" + TAB + ... ["<Name of 2nd node>" + TAB + [...]]]"<Leaf name>" Remarks Retrieving the identifier of an element with management of duplicates To retrieve the identifier of the selected element taking the duplicates into account, <Element path> must correspond to the following code:
<TreeView control>.Select(True) For example:
Trace(TREE_TreeView1.Select() + "/" + ... TREE_TreeView1.Identifier(TREE_TreeView1.Select(True)))
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|