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 / Control functions
  • Use in the events of a Table control
  • Limits
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
CurrentIndex (Function)
In french: IndiceEnCours
Warning
From version 27, CurrentSubscript is kept for backward compatibility. This function has been replaced with CurrentIndex.
Depending on the specified control, returns:
  • the number of the current line displayed in the current Table control,
  • WINDEVJava the number of the option with focus in a Check Box control,
  • WEBDEV - Server code the number of the current row in the current Looper control,
  • WINDEV the index of the current indexed control.
Example
NumLigne is int = CurrentIndex()
Trace("Numéro de la ligne en cours: " + NumLigne)
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.
  • WINDEV Index of the current indexed control.
  • WEBDEV - Server code Number of the current row displayed in the current Looper 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

The CurrentIndex function can be used with:
  • WINDEV Table, Check Box and Indexed controls.
  • WEBDEV - Server code Table and Looper controls.
Component: wd300obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help