<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>24 Feb 2019 21:13:35 Z</lastBuildDate><pubDate>24 Feb 2019 21:13:35 Z</pubDate><description>How do I know which tab number is selected in a dynamic tab control.&#13;
&#13;
That's how I set the control (TAB_Areas is the name of the tab control):&#13;
[code:wl]&#13;
TabAlias is string&#13;
&#13;
//tab alias is the id from the database field&#13;
TabAlias = TabOpen(TAB_Areas, "Tab 1")&#13;
TAB_Areas[TabAlias]..Alias = 2&#13;
&#13;
TabAlias = TabOpen(TAB_Areas, "Tab 2")&#13;
TAB_Areas[TabAlias]..Alias = 3&#13;
&#13;
TabAlias = TabOpen(TAB_Areas, "Tab 3")&#13;
TAB_Areas[TabAlias]..Alias = 1&#13;
[/code]&#13;
&#13;
When I now select a tab, I cannot use just the tab name to find out, which tab is selected.&#13;
I need to know the number of the selected tab, not the alias.&#13;
&#13;
When I do this, I get the alias number, but not the tab number:&#13;
nTabNo is int = TAB_Areas</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66970-selected-tab-number/read.awp</link><title>Selected tab number</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster></channel></rss>
