I am facing a problem in b4xpages, the problem is that when I go to page "mdlSignup" by pressing the ASTabMenu (index = 1) I go to that page normally. But when I close the Signup page and come back to this page the "Sub ASTabMenu_horizontal_TabClick(index As Int)" is triggered and the sub findUser is executed by itself.
any advice.
by the way if I define the ASTabMenu in the B4XPage_Create section of the page there is no problem, but some times I need to define it in the B4XPage_Appear section then I am facing this problem. I have to define it in the B4XPage_Appear section so I can change the tabs of the menu based on some variables.
any advice.
by the way if I define the ASTabMenu in the B4XPage_Create section of the page there is no problem, but some times I need to define it in the B4XPage_Appear section then I am facing this problem. I have to define it in the B4XPage_Appear section so I can change the tabs of the menu based on some variables.
TabClick:
Sub ASTabMenu_horizontal_TabClick(index As Int)
If index = 0 Then
findUser
Else
B4XPages.ShowPage("mdlSignup")
End If
End Sub