Enoch Taylor
Member
I'm trying to pass a list value from my app Main to B4XMainpage
On my Main I have this
And on B4XMainpage I have this code
But when I start my application I end up getting
java.lang.ClassCastException: java.lang.
Object cannot be cast to b4a.poslitemini.b4xpagesmanager
(Truncated)
When I remove the code line from application Main ==> CallSub2(B4XPages.mainpage, "select_clients", list2), everything works
What are my doing wrong. Thank you
On my Main I have this
B4X:
CallSub2(B4XPages.mainpage, "select_clients", list2)
And on B4XMainpage I have this code
B4X:
public Sub select_clients (title As List)
'Autocomplete Box
select_business_name.Setitems (title)
End Sub
But when I start my application I end up getting
java.lang.ClassCastException: java.lang.
Object cannot be cast to b4a.poslitemini.b4xpagesmanager
(Truncated)
When I remove the code line from application Main ==> CallSub2(B4XPages.mainpage, "select_clients", list2), everything works
What are my doing wrong. Thank you