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.
  • Use conditions
  • Special cases
  • Equivalence
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
Restores the scrollbar position in a Table or TreeView Table control as well as the selected elements. These elements have been saved by TableSavePositionAndSelection.
Versions 18 and later
WINDEVLinux This function is now available for WINDEV applications in Linux.
New in version 18
WINDEVLinux This function is now available for WINDEV applications in Linux.
WINDEVLinux This function is now available for WINDEV applications in Linux.
Versions 27 and later
Android This function is now available for Android applications.
New in version 27
Android This function is now available for Android applications.
Android This function is now available for Android applications.
Example
SauveTable is string
SauveTable = TableSavePositionAndSelection(TABLE_Table1)
TableDisplay(TABLE_Table1, taInit)
TableRestorePositionAndSelection(TABLE_Table1, SauveTable)
Syntax
TableRestorePositionAndSelection(<Table control> [, <Backup>])
<Table control>: Control name
Name of the control to be used. This control can correspond to:
  • a Table control.
  • a TreeView Table control.
<Backup>: Optional character string
Characteristics of the backup returned by the TableSavePositionAndSelection function. If this parameter is not specified:
  • The last backup 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:
  • a browsing or memory control.
  • a single-selection or multiselection control.

Special cases

  • The control name used for backup (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 operate on the browsing Table controls with rebound (which means the browsing 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
Component: wd270obj.dll
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment