control.selectedTabIndex()
- Last UpdatedJun 25, 2024
- 1 minute read
Use control.selectedTabIndex() to get the index of the selected tab in the Tabs container.
Syntax
nRetVal = control.selectedTabIndex();
Parameters
None.
Return Value
This method returns a numeric value.
Example
// Define a variable and get the index of the selected tab in the Tabs container.
var tabIndex = control.findById("T1").selectedTabIndex;