PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → Selected tab number
Selected tab number
Débuté par Tassilo, 24 fév. 2019 21:13 - Aucune réponse
Posté le 24 février 2019 - 21:13
How do I know which tab number is selected in a dynamic tab control.

That's how I set the control (TAB_Areas is the name of the tab control):
TabAlias is string

//tab alias is the id from the database field
TabAlias = TabOpen(TAB_Areas, "Tab 1")
TAB_Areas[TabAlias]..Alias = 2

TabAlias = TabOpen(TAB_Areas, "Tab 2")
TAB_Areas[TabAlias]..Alias = 3

TabAlias = TabOpen(TAB_Areas, "Tab 3")
TAB_Areas[TabAlias]..Alias = 1


When I now select a tab, I cannot use just the tab name to find out, which tab is selected.
I need to know the number of the selected tab, not the alias.

When I do this, I get the alias number, but not the tab number:
nTabNo is int = TAB_Areas