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
  • Equivalence
  • Limitation
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
Saves:
  • the scrollbar position in a Table or TreeView Table control,
  • the elements selected in the control.
These elements can be restored by TableRestorePositionAndSelection.
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 24 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 24
iPhone/iPad This function is now available for iPhone/iPad applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
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
<Result> = TableSavePositionAndSelection(<Table control>)
<Result>: Character string
<Table control>: Control name
Name of Table or TreeView Table control to use.
Remarks

Use conditions

TableSavePositionAndSelection can be used on:
  • a browsing or memory control.
  • a single-selection or multi-selection Table control.

Equivalence

TableSavePositionAndSelection and TableRestorePositionAndSelection are equivalent to the option "Remember position and selection" available in the "Details" tab of the Table control description.

Limitation

The TableSavePositionAndSelection function does not work on browsing Table controls s with rebound (i.e. without proportional lift).
Business / UI classification: UI Code
Component: wd270obj.dll
Minimum version required
  • Version 14
This page is also available for…
Comments
exemplo salva e restaura posicao
https://windevdesenvolvimento.blogspot.com/2021/05/dicas-3322-windev-webdev-mobile.html
https://youtu.be/WMRfntdeosM


// GUARDAR POSICAO
gsUarda_posicao = TableSavePositionAndSelection(TABLE_cliente_consulta)
// restaura posicao
TableRestorePositionAndSelection(TABLE_cliente_consulta, gsUarda_posicao)
amarildo
05 May 2021
Video TableSavePositionAndSelection
https://youtu.be/hR1JDoe7_Fw

https://windevdesenvolvimento.blogspot.com/2019/04/dicas-2090-windev-tabela-101.html

// GLOBAL
gsGUARDA_POSICAO is string=""

// GUARDAR POSICAO
gsGUARDA_POSICAO = TableSavePositionAndSelection(TABLE_WIN_TABELA_EXEMPLO)

// RESTAURAR POSICAO
TableRestorePositionAndSelection(TABLE_WIN_TABELA_EXEMPLO, gsGUARDA_POSICAO)

amarildo
29 Apr. 2019
Exemplo Salvar e Recuperar Posiçã
s_salva_posicao_tabela is string=TableSavePositionAndSelection(TABLE_cliente)
// Comandos // manutencao_alterar_cliente_fornecedor()
TableRestorePositionAndSelection(TABLE_cliente,s_salva_posicao_tabela)

//Blog com Video e Exemplo
http://windevdesenvolvimento.blogspot.com.br/2016/03/curso-windev-tabela-018-guardar-e.html
De matos AMARILDO
21 Mar. 2016