PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Displaying an element at the beginning of list (syntax 2)
  • Selecting the element of row whose subscript is
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
Displays a TreeView control from a specified element (node or leaf) or returns the name of the first element displayed in a TreeView control.
Example of TreeView control:
Vocabulary linked to a TreeView control
Example
// Name of first element displayed in the "TREE_RecipeTV" treeview
ResElementName = TreePosition(TREE_RecipeTV)
Syntax

Finding out the name of the first element displayed in a TreeView control Hide the details

<Result> = TreePosition(<TreeView Control> [, <Duplicate Identifier>])
<Result>: Character string
Full path of first element displayed in the TreeView control.
This result has the following format:
"<Name of Root>" + TAB + ["<Name of 1st Node>" + TAB + ...
["<Name of 2nd Node>" + TAB + [...]]]"<Leaf Name>"
In case of duplicates on a path element, this path can contain the element identifier (specified at the end of its name by TreeID).
<TreeView Control>: Control name
Name of TreeView control to use.
<Duplicate Identifier>: Optional boolean
Specifies the management mode of duplicates in the elements of <Result>:
Java This parameter is ignored.

Displaying a TreeView control from a specified element Hide the details

<Result> = TreePosition(<TreeView Control> , <Node Path>)
<Result>: Character string
Full path of the first element displayed in the TreeView control after the call to TreePosition.
This result has the following format:
"<Name of Root>" + TAB + ["<Name of 1st Node>" + TAB + ...
["<Name of 2nd Node>" + TAB + [...]]]"<Leaf Name>"
<TreeView Control>: Control name
Name of TreeView control to use.
<Node Path>: Character string
Full path of the node that will be displayed in first position in the TreeView control.
This parameter has the following format:
"<Name of Root>" + TAB + ["<Name of 1st Node>" + TAB + ...
["<Name of 2nd Node>" + TAB + [...]]]"<Leaf Name>"
In case of duplicates on a path element, this path can contain the element identifier (specified at the end of its name by TreeID).
Remarks

Displaying an element at the beginning of list (syntax 2)

The element displayed first may differ from the one requested. Indeed, if there are not enough elements displayed below the <Node Path> element, this element cannot be displayed at the beginning of TreeView control
For example, the "Cold starters" node cannot be displayed at the beginning of TreeView control: there are not enough elements displayed below this node.
Element displayed first

Selecting the element of row whose subscript is <Subscript>

To select the element found at <Subscript> row, use:
  • the direct assignment:
    <TreeView Control> = Subscript

    If the row is displayed in the TreeView control, the corresponding element is selected.
  • TreeSelectPlus:

TreeSelectPlus(<TreeView Control>, <Full Element Path>)
Components
WINDEVReports and Queries wd230obj.dll
Windows Mobile wp230obj.dll
Java wd230java.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment