|
|
|
|
|
- Use conditions
- Special cases
- Equivalence
TableRestorePositionAndSelection (Function) In french: TableRestaurePositionEtSélection Restores the scrollbar position in a Table or TreeView Table control as well as the selected elements. These elements have been saved by TableSavePositionAndSelection.
SaveTable is string SaveTable = TableSavePositionAndSelection(TABLE_Table1) TableDisplay(TABLE_Table1, taInit) TableRestorePositionAndSelection(TABLE_Table1, SaveTable)
Syntax
TableRestorePositionAndSelection(<Table control> [, <Save>])
<Table control>: Control name Name of the control to be used. This control can correspond to: - a Table control.
- a TreeView Table control.
<Save>: Optional character string Backup characteristics returned by function TableSavePositionAndSelection. If this parameter is not specified:- The last save performed by TableSavePositionAndSelection on the control is used (if it exists).
- fIf the option "Remember position and selection" is checked in the control description ("Details" tab), the last value saved is used.
- Otherwise, an error occurs.
Remarks Use conditions TableRestorePositionAndSelection 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.
Special cases - The name of the control used for the save (TableSavePositionAndSelection) can differ from the name used for the restore operation. This feature can be useful to duplicate the position and the selection on two Table controls displayed alternatively for example.
- TableRestorePositionAndSelection has no effect if the control is empty.
- TableRestorePositionAndSelection does not work on Table controls based on a data file with ongoing movement (i.e. Table controls without proportional scrollbar).
Equivalence The functions TableSavePositionAndSelection and TableRestorePositionAndSelection are equivalent to the option "Remember position and selection" available in the "Details" tab of the control description. Business / UI classification: UI Code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|