L le_toubib Active Member Licensed User Longtime User May 24, 2016 #1 Hi again How to switch to a tab based I its name .. Sorry if newbie question
Erel B4X founder Staff member Licensed User Longtime User May 24, 2016 #2 You can use this sub: B4X: Sub JumpToTab(tp As TabPane, TabText As String) For Each tb As TabPage In tp.Tabs If tb.Text = TabText Then tp.SelectedIndex = tp.Tabs.IndexOf(tb) Exit End If Next End Sub Upvote 0
You can use this sub: B4X: Sub JumpToTab(tp As TabPane, TabText As String) For Each tb As TabPage In tp.Tabs If tb.Text = TabText Then tp.SelectedIndex = tp.Tabs.IndexOf(tb) Exit End If Next End Sub