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 the subscript of an element in a TreeMap control from the element path. This path was specified in TreeMapAdd.
Example
// The TMAP_Wine control is filled from a table.
// Find the element corresponding to the selected element in the table
SelectionPath is string
SelectionPath = COL_WineType[TABLE_WINE] + "\" + COL_Owner[TABLE_WINE]
ElementSubscript = TreeMapSeek(TMAP_Wine, SelectionPath)
// Select the element in the TreeMap control
IF ElementSubscript <> - 1 THEN
TMAP_Wine = ElementSubscript
END
Syntax
<Result> = TreeMapSeek(<TreeMap Control> , <Element Path> [, <Start Subscript>])
<Result>: Integer
  • Subscript of element found,
  • -1 if no element corresponds to the search.
Note: The element found can be directly handled via its subscript. You can for example modify the properties of this element or select it in the TreeMap control.
<TreeMap Control>: Control name
Name of TreeMap control used.
If this parameter corresponds to an empty string (""), the TreeMap control to which the current process belongs will be used.
<Element Path>: Character string (with quotes)
Path and caption of sought element. This path must be identical to the one used when the element was added into the TreeMap control by TreeMapAdd.
The separator of different path elements can be:
  • the "\" character. For example: "MyDirectory\MyFile".
  • the "TAB" character. For example: "Desserts"+TAB+"Ice cream".
<Start Subscript>: Optional integer
Subscript of the element from which the search will be performed. If this parameter is not specified, the search is performed in the entire TreeMap control. This parameter is used to find all the occurrences of a path.
Components
WINDEVReports and Queries wd230obj.dll
Minimum required version
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment