PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
Returns the number of the current record in a browsing Table control.
Note: TableRecNum can be used on a single-selection or multiselection table.
Versions 16 and later
WINDEVLinux This function is now available for WINDEV applications in Linux.
New in version 16
WINDEVLinux This function is now available for WINDEV applications in Linux.
WINDEVLinux This function is now available for WINDEV applications in Linux.
Example
// Current record number in the "TABLE_ProductTable" control
ResRecNum = TableRecNum(TABLE_ProductTable)
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 Table control to use.
If this parameter corresponds to an empty String (""), the Table control that is related to the current process will be used.
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 : wd240obj.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
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
Feb. 11 2019