ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Table functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Returns the number of the current record in a Table control based on a data file.
Note The function TableRecNum function can be used on both single-selection and multi-selection Table controls.
Example
// Numéro d'enregistrement en cours dans le champ Table "TABLE_TableProduit"
ResNumEnr = TableRecNum(TABLE_TableProduit)
Syntax
<Result> = TableRecNum(<Table control>)
<Result>: Integer
  • Current record number in the data file linked to the Table control,
  • 0 if there is no current row or if the current row is not saved yet in the data file linked to the Table control.
<Table control>: Control name
Name of the 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
  • If the query was run with the hWithFilter constant (option checked in the query editor), TableRecNum returns the number of the current record in the query.
  • If the query was run without the hWithFilter constant, TableRecNum returns an undefined result.
Component: wd300obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Video TableRecNum
https://youtu.be/pP2a9DMFbcE

https://windevdesenvolvimento.blogspot.com/2019/07/dicas-2186-windev-webdev-mobile-tabela.html

// BTN_total_rEGISTROS
// Retorna o número do registro atual em um controle Table de navegação.
EDT_total_registros=TableRecNum(TABLE_WIN_TABELA_EXEMPLO)
amarildo
08 Jul. 2019
Video TableRecNum
https://youtu.be/TNzP9yAKako

https://windevdesenvolvimento.blogspot.com/2019/02/dicas-2013-windev-tabela-89-tablerecnum.html

EDT_total_registros= TableRecNum(TABLE_WIN_TABELA_EXEMPLO)
amarildo
11 Feb. 2019

Last update: 03/27/2025

Send a report | Local help