Binary01 Active Member Licensed User Longtime User Feb 18, 2019 #1 Hello, Now I create mylistview with iTableView (iUI8 Version 1.61) as follow: at Process_Globals Code: Copy Private myList As TableView at Application_Start Code: Copy myList .Initialize("myList ", False) pnMenu.AddView(myList ,5%x, 10%y ,90%x,80%y) CreateMenu(10) Code: Copy Sub CreateMenu(n as Int) Dim i As Int myList.Clear For i = 1 To n myList.AddSingleLine("Item #" & i) Next End Sub 1. When I add a break point on myList.AddSingleLine("Item #" & i) and trace and run line by line with Debug, no items are added in myList and show only lines. (but all Items in myList are shown without trace in Debug run.) 2. When I call CreateMenu(20) from button click module, myList is also empty and show only lines. How can I fix it? I do not want CustomListView Library. I want to use this iTableView. Thanks Last edited: Feb 18, 2019
Hello, Now I create mylistview with iTableView (iUI8 Version 1.61) as follow: at Process_Globals Code: Copy Private myList As TableView at Application_Start Code: Copy myList .Initialize("myList ", False) pnMenu.AddView(myList ,5%x, 10%y ,90%x,80%y) CreateMenu(10) Code: Copy Sub CreateMenu(n as Int) Dim i As Int myList.Clear For i = 1 To n myList.AddSingleLine("Item #" & i) Next End Sub 1. When I add a break point on myList.AddSingleLine("Item #" & i) and trace and run line by line with Debug, no items are added in myList and show only lines. (but all Items in myList are shown without trace in Debug run.) 2. When I call CreateMenu(20) from button click module, myList is also empty and show only lines. How can I fix it? I do not want CustomListView Library. I want to use this iTableView. Thanks
Erel B4X founder Staff member Licensed User Longtime User Feb 18, 2019 #2 Call Table.Reload after you modify it. Upvote 0
Binary01 Active Member Licensed User Longtime User Feb 18, 2019 #3 Erel said: Call Table.Reload after you modify it. Click to expand... Thanks Erel. myList.ReloadAll is working! Upvote 0
Erel said: Call Table.Reload after you modify it. Click to expand... Thanks Erel. myList.ReloadAll is working!