Android Question B4XTable1 and B4XPage

sigster

Active Member
Licensed User
Longtime User
Hi


how can I access "Private B4XTable1 As B4XTable" in Main from B4XPage = ( Main.B4XTable1 )

Thanks
 

sigster

Active Member
Licensed User
Longtime User
Thanks

but if I want to split the code into few .bas file so I don't have all the code in B4XMainPage
how can I chare B4XTable1 from B4XMainPage
 
Upvote 0

Unobtainius

Active Member
Licensed User
Longtime User
Whoopsy. I have some code that requires an activity and I couldn't figure out how to supply it from the pages so I put it main?
B4X:
public Sub GetTemplateInput(input As B4XInputTemplate) As ResumableSub
    Dim m As Map
    m.Initialize
    
    Private Dialog As B4XDialog
    Dialog.Initialize(Activity)
    Wait For (Dialog.ShowTemplate(input, "OK", "", "CANCEL")) Complete (Result As Int)
    If Result = xui.DialogResponse_Positive Then
        ' update stock item qty
        m.Put("Result", input.text)
    End If
    Return m
End Sub
So this is wrong then?
I am open to suggestions on doing this correctly
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…