i need to getting position of Activity menu item when i click...
From
B4X:
Sub mnu1_Click
TabStrip1.ScrollTo(0, True)
End Sub
Sub mnu2_Click
TabStrip1.ScrollTo(1, True)
End Sub
Sub mnu3_Click
TabStrip1.ScrollTo(2, True)
End Sub
To ( But it's ERROR )
B4X:
Sub mnu_Click(Position As Int)
TabStrip1.ScrollTo(Position, True)
End Sub
The Sender keyword will return the menu text item:
B4X:
Sub mnu_Click
Dim MenuText As String = Sender
You can find the number in the string (assuming that it is there). If it is not there then you should create a global map that maps between the text and the page numbers.