PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
Seeks an element (leaf or node) in a TreeView control and returns its path.
Example
// Find the element whose identifier is "1" in the "TREE_CustomerTreeView" control
// Note: all the treeview elements are taken into account
ResPath = TreeFind(TREE_CustomerTreeView, 1)
// Find the element whose identifier is "1" in the "TREE_CustomerTreeView" control
// Search performed on the leaves from the treeview root
ResPath = TreeFind(TREE_CustomerTreeView, 1, Null, tvLeaf)
Syntax
<Result> = TreeFind(<TreeView Control> , <Element to Find> [, <Path of Source Element> [, <Options>]])
<Result>: Character string
  • Path of element found. This string can contain specific control characters. This string can be used by all TreeXXX functions. This path has the following format:
    "<Name of Root>" + TAB + ["<Name of 1st Node>" + TAB + ...
    ["<Name of 2nd Node>" + TAB + [...]]]"<Leaf Name>"
  • Empty string ("") if no element corresponds to the search.
<TreeView Control>: Control name
Name of TreeView control to use.
<Element to Find>: Character string or integer
Identifier of element to find. This identifier must be identical to the one used in TreeAdd, TreeInsert or TreeModify.
<Path of Source Element>: Optional character string
Path of source element for the search in the TreeView control. If this parameter is not specified or if it corresponds to the Null constant, the search is performed from the root of TreeView control.
<Options>: Optional constant (or combination of constants)
Specifies the search characteristics:
tvLeafSearch performed on the leaves of TreeView control.
tvNodeSearch performed on the nodes of TreeView control.
tvOneLevelSearch performed on a single level of tree structure (the elements found below the source branch are ignored). The search is performed on the child elements of source element.

By default, the search is performed with tvLeaf + tvNode (all elements found in the TreeView control are browsed).
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 11
This page is also available for…
Comments
Click [Add] to post a comment