M Mohammad Ali Shadanpoor New Member Dec 6, 2019 #1 Hi.. at the first sorry for my bad English!!! I created 8 customlistview with disigner and must get size of them and use insert at, remove at and other properties by code. Unfortunately i'm new and can't use reflection and run method!!! Disigner initial them by name Customlistview1 to 8 and can't use like customlistview(1).size In vb.net i use ctype(controls.find(string.format("Listbox{0},ListNum),True)(0), Listbox).Item.Count But can't find syntax like this in b4a! Please help me... Last edited: Dec 6, 2019
Hi.. at the first sorry for my bad English!!! I created 8 customlistview with disigner and must get size of them and use insert at, remove at and other properties by code. Unfortunately i'm new and can't use reflection and run method!!! Disigner initial them by name Customlistview1 to 8 and can't use like customlistview(1).size In vb.net i use ctype(controls.find(string.format("Listbox{0},ListNum),True)(0), Listbox).Item.Count But can't find syntax like this in b4a! Please help me...
Erel B4X founder Staff member Licensed User Longtime User Dec 8, 2019 #2 Code: Private clvs As List '... Activity.LoadLayout(...) clvs = Array(CustomListView1, CustomListView2, ...) Dim clv As CustomListView = clvs.Get(3) '4th list Upvote 0
Code: Private clvs As List '... Activity.LoadLayout(...) clvs = Array(CustomListView1, CustomListView2, ...) Dim clv As CustomListView = clvs.Get(3) '4th list
M Mohammad Ali Shadanpoor New Member Dec 8, 2019 #3 Erel said: Code: Private clvs As List '... Activity.LoadLayout(...) clvs = Array(CustomListView1, CustomListView2, ...) Dim clv As CustomListView = clvs.Get(3) '4th list Click to expand... Thanks a lot Erel. My problem was solved. Upvote 0
Erel said: Code: Private clvs As List '... Activity.LoadLayout(...) clvs = Array(CustomListView1, CustomListView2, ...) Dim clv As CustomListView = clvs.Get(3) '4th list Click to expand... Thanks a lot Erel. My problem was solved.