ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

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 <Table>.RecNum 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 = TABLE_TableProduit.NumEnr()
Syntax
<Result> = <Table control>.RecNum()
<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.
Remarks
  • If the query was run with the hWithFilter constant (option checked in the query editor), <Table>.RecNum returns the number of the current record in the query.
  • If the query was run without the hWithFilter constant, <Table>.RecNum returns an undefined result.
Component: wd300obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/25/2024

Send a report | Local help