PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Use conditions
  • Special cases
  • Equivalence
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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 <Table>.SavePositionAndSelection.
Example
SaveTable is string
SaveTable = TABLE_Table1.SavePositionAndSelection()
TABLE_Table1.Display(taInit)
TABLE_Table1.RestorePositionAndSelection(SaveTable)
Syntax
<Table control>.RestorePositionAndSelection([<Save>])
<Table control>: Control name
Name of control to use. This control can correspond to:
  • a Table control.
  • a TreeView Table control.
<Save>: Optional character string
Backup characteristics returned by <Table>.SavePositionAndSelection. If this parameter is not specified:
  • The last backup performed by <Table>.SavePositionAndSelection on the control is used (if it exists).
  • fIf the option "Store the position and the selection" is checked in the control description ("Details" tab), the last value saved is used.
  • Otherwise, an error occurs.
Remarks

Use conditions

<Table>.RestorePositionAndSelection can be used on:
  • a browsing or memory control.
  • a single-selection or multiselection control.

Special cases

  • The control name used for backup (<Table>.SavePositionAndSelection) 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.
  • <Table>.RestorePositionAndSelection has no effect if the control is empty.
  • <Table>.RestorePositionAndSelection does not work on browsing Table controls with ongoing movement (i.e. Table controls without proportional scrollbar).

Equivalence

The functions <Table>.SavePositionAndSelection and <Table>.RestorePositionAndSelection are equivalent to the option "Store the position and the selection" available in the "Details" tab of the control description.
Component : wd240obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment