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
Returns the "children" of an element (lower level) in a TreeView Table control.
Versions 18 and later
WEBDEV - Server codePHP This function is now available for PHP sites.
WEBDEV - Server codeWindows This function is now available for WEBDEV sites in Windows.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
New in version 18
WEBDEV - Server codePHP This function is now available for PHP sites.
WEBDEV - Server codeWindows This function is now available for WEBDEV sites in Windows.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
WEBDEV - Server codePHP This function is now available for PHP sites.
WEBDEV - Server codeWindows This function is now available for WEBDEV sites in Windows.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
Versions 27 and later
Android This function is now available for Android applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 27
Android This function is now available for Android applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Android This function is now available for Android applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Example
// Premier "fils" du premier noeud dans le champ "TABLEH_RecetteTV"
Res is int
Res = TableGiveChild(TABLEH_RecetteTV, 1, taFirst)
WHILE Res <> -1
Trace(Res)
Res = TableGiveChild(TABLEH_RecetteTV, 1, taNext)
END
// Procédure récursive permettant de lister tous les fils
// de tous les parents à partir d'une ligne
PROCÉDURE ListeFils(i=0)
j is int
// Si aucun numéro de ligne n'a été passé en paramètre,
// récupère l'indice de la ligne sélectionnée
IF i = 0 THEN i = TableSelect(TABLEH_MaTableHiérarchique)
j = TableGiveChild(TABLEH_MaTableHiérarchique, i, taFirst)
WHILE j <> -1
Info("Ligne: " + j + ", Code: " + COL_Code[j])
// Appel de la procédure en lui spécifiant
// le numéro de la ligne actuelle
ListeFils(j)
j = TableGiveChild(TABLEH_MaTableHiérarchique, i, taNext)
END
Syntax

Returning the child of an element by specifying the row number Hide the details

<Result> = TableGiveChild(<TreeView Table control> , <row Number> , <Fils>)
<Result>: entier
  • Number of the row for the "child" that was found,
  • -1 if no "child" is found.
<TreeView Table control>: Control name
Name of TreeView Table control to use.
<row Number>: entier
Number of the row containing the branch to use.
<Fils>: Constant
Indicates the requested "child".
taFirstFirst child element.
taNextNext child element.

Returning the child of an element by specifying its name Hide the details

<Result> = TableGiveChild(<TreeView Table control> [, <Name of the element>] , <Fils>)
<Result>: entier
  • Number of the row for the "child" that was found,
  • -1 if no "child" is found.
<TreeView Table control>: Control name
Name of TreeView Table control to use.
<Name of the element>: Optional 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.
<Fils>: Constant
Indicates the requested "child".
taFirstFirst child element.
taNextNext child element.
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