PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Retrieving the identifier of an element with management of duplicates
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Returns the identifier associated with an element (node or leaf) in a TreeView control.
Example of TreeView control:
Vocabulary linked to a TreeView control
Example
// Returns the identifier of "Desserts" node in the "TREE_RecipeTV" treeview
Res = TreeIdentifier(TREE_RecipeTV, "Recipes" + TAB + "Desserts")
Syntax
<Result> = TreeIdentifier(<TreeView Control> , <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 TreeAdd or TreeModify) 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 TreeView control to use.
<Element Path>: Character string
Full path of element to use. This parameter has the following format:
"<Name of Root>" + 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 selected element while taking the duplicates into account, <Identifier Path> must correspond to the following code:
TreeSelect(<TreeView Control>, True)
For example:
Trace(TreeSelect(TREE_TreeView1) + "/" + ...
TreeIdentifier(TREE_TreeView1, TreeSelect(TREE_TreeView1, True)))
Components
WINDEVReports and Queries wd230obj.dll
WEBDEV - Server code wd230page.dll
Windows Mobile wp230obj.dll
Java wd230java.jar
Linux wd230obj.so
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment