|
|
|
|
|
- Use conditions
- Characteristics of row elements
- Table or TreeView Table control based on a data file: Modifications in the linked data file
- Changes in a Table or TreeView Table control based on a data file
- TableModifyLine function and Modified property
TableModifyLine (Function) In french: TableModifieLigne Modifies a row in: - a Table control,
- a TreeView Table control.
// Modify the "Paul" and "Moore" elements // in the 5th row of "TABLE_CustomerTable" control TableModifyLine(TABLE_CustomerTable, 5, "Paul", "Moore")
Syntax
TableModifyLine(<Table control> , <Index> [, <Element column 1> [... [, <Element column N>]]])
<Table control>: Control name Name of the control to be used. This control can correspond to: - a Table control.
- a TreeView Table control.
If this parameter corresponds to an empty string (""), the control to which the current event belongs will be used. <Index>: Integer Index of the row to be modified. The index of the first row is set to 1. | | Index equal to -1 | The current row is modified. No effect if no row is selected. | Index greater than the number of control rows | A WLanguage error occurs. |
<Element column 1>: Optional character string First element of the modified row. The value of this element replaces the existing value. Each element corresponds to a column. Each type of modified element must be compatible with the type of relevant column. If none of the <Element column X> parameters are specified, TableModifyLine has no effect. <Element column N>: Optional character string Nth element of the modified row. The value of this element replaces the existing value. Each element corresponds to a column. Each type of modified element must be compatible with the type of relevant column. If none of the <Element column X> parameters are specified, TableModifyLine has no effect. Remarks Use conditions TableModifyLine can be used on: - a Table or TreeView Table control based on a data file.
- a Table or TreeView Table control populated programmatically.
- a single-selection or multi-selection control.
Reminder: Multi-selection is not available for Table controls in "Server" mode.
Characteristics of row elements - To modify the value of an element in a row, use the following syntax:
TableControl.ColumnName[RowIndex] = NewValue - If an element corresponds to the calculation result, the numeric expression must be enclosed in brackets.
For example:
TableModifyLine(TABLE_CalcTable, (53+29),(83-21))
Changes in a Table or TreeView Table control based on a data file To modify a row in a Table or TreeView Table control based on a data file, we advise you to:
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|