D db0070 Active Member Licensed User Longtime User Sep 9, 2019 #1 I have this CustomListView that I populate with TextItems. Using GetValue, I can get the item number the user clicked on but how do I get the text? B4X: dim List1 As CustomListView List1.AddTextItem("Tone A",0) List1.AddTextItem("Tone B",1) List1.AddTextItem("Tone C",2) List1.AddTextItem("Tone D",3)
I have this CustomListView that I populate with TextItems. Using GetValue, I can get the item number the user clicked on but how do I get the text? B4X: dim List1 As CustomListView List1.AddTextItem("Tone A",0) List1.AddTextItem("Tone B",1) List1.AddTextItem("Tone C",2) List1.AddTextItem("Tone D",3)
DonManfred Expert Licensed User Longtime User Sep 9, 2019 #2 use GetPanel to get the panel. Then get the text inside the Label on this panel Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Sep 10, 2019 #3 B4X: Sub clv1_ItemClick (Index As Int, Value As Object) Dim text As String = clv1.GetPanel(Index).GetView(0).Text Log(text) End Sub CLV.AddTextItem creates items made of a single label. Upvote 0
B4X: Sub clv1_ItemClick (Index As Int, Value As Object) Dim text As String = clv1.GetPanel(Index).GetView(0).Text Log(text) End Sub CLV.AddTextItem creates items made of a single label.