ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Control functions
  • Use in the events of a Table control
  • Limits
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
CurrentIndex (Function)
In french: IndiceEnCours (Fonction)
Warning
From version 27, CurrentSubscript is kept for backward compatibility. This function is replaced by CurrentIndex.
Depending on the specified control, returns:
  • the number of the current row displayed in the current Table control,
Example
RowNum is int = CurrentIndex()
Trace("Number of the current row: " + RowNum)
Syntax
<Result> = CurrentIndex()
<Result>: Integer
  • Number of the current row displayed in the current Table control.
  • Number of the option in the current Check Box control.
Remarks

Use in the events of a Table control

When initializing a Table control, the "Row display" event is run whenever a row is displayed in the Table control.
When initializing a Table control, if CurrentIndex is used in the "Row display" event of a row, CurrentIndex returns 0.

Limits

CurrentIndex can be used with:
    Component: wd290obj.dll
    Minimum version required
    • Version 9
    This page is also available for…
    Comments
    Click [Add] to post a comment

    Last update: 05/26/2022

    Send a report | Local help