|
|
|
|
|
TableGiveChild (Function) In french: TableRécupèreFils Returns the "children" of an element (lower level) in a TreeView Table control.
Res is int
Res = TableGiveChild(TABLEH_RecetteTV, 1, taFirst)
WHILE Res <> -1
Trace(Res)
Res = TableGiveChild(TABLEH_RecetteTV, 1, taNext)
END
PROCEDURE ListeFils(i=0)
j is int
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])
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> , <Child>)
<Result>: Integer - Number of the row for the "child" that was found,
- -1 if no "child" is found.
<TreeView Table control>: Control name Name of the TreeView Table control to be used. <Row number>: Integer Number of the row containing the branch to use. <Child>: Constant Indicates the requested "child". | | taFirst | First child element. | taNext | Next child element. |
Returning the child of an element by specifying its name Hide the details
<Result> = TableGiveChild(<TreeView Table control> [, <Element name>] , <Child>)
<Result>: Integer - Number of the row for the "child" that was found,
- -1 if no "child" is found.
<TreeView Table control>: Control name Name of the TreeView Table control to be used. <Element name>: Optional character string Name of the element to be used. This parameter has the following format:
"<Root name>" + TAB + ["<Name of 1st node>" + TAB + ... ["<Name of 2nd node>" + TAB + [...]]]"<Element name>" A WLanguage error occurs if this parameter does not correspond to an existing element. <Child>: Constant Indicates the requested "child". | | taFirst | First child element. | taNext | Next child element. |
Remarks The runtime speed of syntax 1 is faster than the runtime speed of syntax 2. Business / UI classification: UI Code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|