PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Checks the existence of an element in a treeview table and returns its type (node or leaf) if the element exists.
Versions 18 and later
Windows This function is now available for WEBDEV sites in Windows.
Linux This function is now available for WEBDEV sites in Linux.
New in version 18
Windows This function is now available for WEBDEV sites in Windows.
Linux This function is now available for WEBDEV sites in Linux.
Windows This function is now available for WEBDEV sites in Windows.
Linux This function is now available for WEBDEV sites in Linux.
Example
// Type de l'élément de la ligne 3
// dans le champ Table hiérarchique "TABLEH_TableRecette"
IF TableTypeItem(TABLEH_TableRecette, 3) = taNode THEN
// Dérouler ce noeud
TableExpand(TABLEH_TableRecette, 3)
END
Syntax

Checking the existence of an element by specifying the row number Hide the details

<Result> = TableTypeItem(<TreeView Table control> [, <row Number>])
<Result>: Constant
Type of element:
taErrorThe specified element does not exist.
taLeafThe specified element is a leaf.
taNodeThe specified element is a node.
<TreeView Table control>: Control name
Name of TreeView Table control to use.
<row Number>: Optional integer
Number of the row containing the element to use. If this parameter is not specified, the type of the element found in the current row is returned.

Checking the existence of an element by specifying its name Hide the details

<Result> = TableTypeItem(<TreeView Table control> [, <Name of the element>])
<Result>: Constant
Type of element:
taErrorThe specified element does not exist.
taLeafThe specified element is a leaf.
taNodeThe specified element is a node.
<TreeView Table control>: Control name
Name of TreeView Table control to use.
<Name of the element>: Optional character string
Name of the element to test. This parameter has the following format:
"<Nom de la racine>" + TAB + ["<Nom du 1er noeud>" + TAB + ...
["<Nom du 2ème noeud>" + TAB + [...]]]"<Nom de l'élément>"
A WLanguage error occurs if this parameter does not correspond to an existing element.
If this parameter is not specified, the type of the element found in the current row is returned.
Remarks
The runtime speed of syntax 1 is faster than the runtime speed of syntax 2.
Business / UI classification: UI Code
Component: wd270obj.dll
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment