|
|
|
|
|
- Use conditions
- Displaying a row in first position (syntax 1)
- Selection bar and TablePosition function
- Table based on a data file field: function limitations TablePosition
- Event "Entry in edit in a row of"
TablePosition (Function) In french: TablePosition Displays a Table or TreeView Table control from a specified row or returns the index of the first row displayed in a Table or TreeView Table control.
ResPosition = TablePosition(TABLE_Produit)
Syntax
Displaying a Table or TreeView Table control from a specified row Hide the details
TablePosition(<Table control> , <Index> [, <Option>])
<Table control>: Control name Name of the Table or TreeView Table control to be used.
If this parameter corresponds to an empty string (""), the control used will be the Table control to which the current event belongs. <Index>: Integer Index of the row that will be displayed in the control. This row is displayed in first position by default. If <Index> is greater than the number of rows in the control (returned by TableCount), the last row is selected by default. <Option>: Integer constant
Getting the index of the first row displayed in a Table or TreeView Table control Hide the details
<Result> = TablePosition(<Table control>)
<Result>: Integer Index of the first row displayed in the specified control.
<Table control>: Control name Name of the Table or TreeView Table control to be used.
If this parameter corresponds to an empty string (""), the control used will be the Table control to which the current event belongs. Remarks Use conditions TablePosition can be used on: - Table or TreeView Table controls based on a data file.
- Table or TreeView Table controls populated programmatically.
- single-selection or multi-selection controls.
Displaying a row in first position (syntax 1) The row displayed in first position may differ from the requested one. Indeed, TablePosition tries to display as many rows as possible in the control. TablePosition will display the specified row only if this row is followed by a sufficient number of non-empty rows. In the following example, the "Durand" row cannot be displayed at the beginning of Table control.
Selection bar and TablePosition function TablePosition does not modify the current row (i.e. the row selected with the selection bar). Therefore, if the Table control has focus when TablePosition is run, the current row will have to be visible at the same time as the specified row. If the current row and the specified row cannot be displayed at the same time, the content of the control will be displayed from the current row (and not from the row specified by <Index>). Event "Entry in edit in a row of" - TablePosition does not force the execution of the "Entry in edit in a row of" event.
- TablePosition cannot be used in the "Entry in edit in a row of" event of the control (the result returned is incorrect).
Business / UI classification: UI Code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|