I populated a customlistview from a JSON file. I added a button which was supposed to clear the custom list view and add new items, but this is not happening.
Populating a custom list view:
' this part works'
MenuItems = map1.Get("bulletins")
For i = 0 To MenuItems.Size - 1
m = MenuItems.Get(i)
If m.Get("callSign")="ALL" And m.Get("aircraftType")=actype Then
lstbulletin.AddTextItem(m.Get("summary"),i)
End If
Next
Private Sub Button1_Click
'this is not working'
lstbulletin.Clear
lstbulletin.AddTextItem("hi",100)
End Sub
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("MainPage")
B4XPages.GetManager.SetTitle(Me,"Boeing Bulletins")
Initialize_bulletin
[B]'TabStrip1.LoadLayout("MainPage", "Bulletins")[/B]
'TabStrip1.LoadLayout("details", "Details")
End Sub
When I commented out code in bold above, problem was resolved. Thanks. I