PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • WLanguage procedure
  • Interrupting <TreeView Table>.ListChild
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
<TreeView Table>.ListChild (Function)
In french: <Table hiérarchique>.ListeFils
Lists the "children" of a node and the "child" elements of these "children" in a TreeView Table control. A WLanguage procedure is called whenever a "child" element is found.
Example
// Liste les "fils" du noeud "Desserts" dans le champ Table hiérarchique "TABLEH_RecetteTV"
// La procédure "DérouleTout" est appelée pour chaque "fils" trouvé du noeud "Desserts"
nNbDesserts est un entier
nNbDesserts = TABLEH_RecetteTV.ListeFils("Recettes" + TAB + "Desserts", "DérouleTout")
Syntax

Listing the children of a branch identified by its path Hide the details

<Result> = <TreeView Table control>.ListItem(<Element name> , <WLanguage procedure> [, <Custom parameter>])
<Result>: Integer
Number of listed elements.
<TreeView Table control>: Control name
Name of TreeView Table control to use.
<Element name>: Character string
Name of the element to be used. 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.
<WLanguage procedure>: Procedure name
Name of WLanguage procedure that will be called whenever a "child" element is found.
<Custom parameter>: Optional integer
Parameter passed to the procedure <Procedure name>.

Listing the children of a branch identified by its subscript Hide the details

<Result> = <TreeView Table control>.ListItem(<Row number> , <WLanguage procedure> [, <Custom parameter>])
<Result>: Integer
Number of listed elements.
<TreeView Table control>: Control name
Name of TreeView Table control to use.
<Row number>: Integer
Number of the row corresponding to the branch to use.
<WLanguage procedure>: Procedure name
Name of WLanguage procedure that will be called whenever a "child" element is found.
<Custom parameter>: Optional integer
Parameter passed to the procedure <Procedure name>.
Remarks

WLanguage procedure

The <Procedure name> procedure is called whenever a "child" element is found. This procedure is a WLanguage procedure.
This procedure must be declared as follows:
PROCEDURE <Nom de la procédure> (<Champ Table hiérarchique>, <Branche du fils>,..
<Élément>, <Niveau>, <Paramètre optionnel>)
The different parameters are as follows:
  • <TreeView Table control> (character string with quotes):
    Name of TreeView Table control to use.
  • <Child branch> (character string):
    Full path of "child" found (without the name) or an empty string ("") if it is the root of TreeView Table control. This parameter always ends with the "TAB" separator. This parameter will be initialized and filled whenever the procedure is called.
  • <Element> (character string):
    Name of the element found. This parameter will be initialized and filled whenever the procedure is called.
  • <Level> (integer):
    Level of element found in relation to the initial search element:
    1. Direct child
    2. Grand child
    3. ...
  • <Optional parameter> (integer):
    Value passed in <Custom parameter> of <TreeView Table>.ListChild. If <Custom parameter> is not specified, <Custom parameter> corresponds to the NULL constant.
Remark: This procedure can be an internal procedure.

Interrupting <TreeView Table>.ListChild

<TreeView Table>.ListChild cannot be interrupted as long as all "child" elements have not been browsed.
To force the interruption of the path performed by the <TreeView Table>.ListChildfunction, use the following row in the Procedure <Name of the Procedure>:
RESULT False
In this case, <TreeView Table>.ListChild returns the number of elements browsed until the call to "RESULT False".
Component: wd270obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment