PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
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.
New in version 18
Windows This function is now available for WEBDEV sites in Windows.
Windows This function is now available for WEBDEV sites in Windows.
Example
// Type de l'élément de la ligne 3
// dans le champ Table hiérarchique "TABLEH_TableRecette"
SI TABLEH_TableRecette.TypeElément(3) = taNoeud ALORS
// Dérouler ce noeud
TABLEH_TableRecette.Déroule(3)
FIN
Syntax

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

<Result> = <TreeView Table control>.TypeItem([<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> = <TreeView Table control>.TypeItem([<Element name>])
<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.
<Element name>: 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.
Component: wd270obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment