S sigster Active Member Licensed User Longtime User Aug 28, 2018 #1 Hi How can I use CustomListView in Starter I get error Cannot access activity object from sub Progress_global B4X: For i = 1 To 20 Cust_lisview.Add(CreateListItem($"Item #${i}"$, Listv_fyrirtaki.AsView.Width, 60dip), $"Item #${i}"$) Next
Hi How can I use CustomListView in Starter I get error Cannot access activity object from sub Progress_global B4X: For i = 1 To 20 Cust_lisview.Add(CreateListItem($"Item #${i}"$, Listv_fyrirtaki.AsView.Width, 60dip), $"Item #${i}"$) Next
Erel B4X founder Staff member Licensed User Longtime User Aug 28, 2018 #2 You cannot. You can only access it from the activity code or from a class initialized from an activity. Upvote 0
You cannot. You can only access it from the activity code or from a class initialized from an activity.