Activity
I want to convert my application to b4page.
what is the b4x pages equivalent of the above code.
the code below fails. it shows "xxx" continuously.
thanks..
B4xpage
activity1:
Dim a1 As Int
Private Sub Amir_onItemClick (Parent As Panel,Position As Int)
a1=Position
StartActivity(activity2)
End Sub
activity2:
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("layot1")
If activity1.a1=0 Then
MsgboxAsync("xxx", "info")
Else If activity1.a1=1 Then
MsgboxAsync("yyy", "info")
End If
End Sub
I want to convert my application to b4page.
what is the b4x pages equivalent of the above code.
the code below fails. it shows "xxx" continuously.
thanks..
B4xpage
activity1:
Dim a1 As Int
Private Sub Amir_onItemClick (Parent As Panel,Position As Int)
a1=Position
B4XPages.ShowPage("activity2")
End Sub
activity2:
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
'load the layout to Root
Root.LoadLayout("layot1")
If B4XPages.MainPage.activity1.a1=0 Then
MsgboxAsync("xxx", "info")
Else If B4XPages.MainPage.activity1.a1=1 Then
MsgboxAsync("yyy", "info")
End If
End sub
Last edited: