S sasidhar Active Member Licensed User Longtime User Sep 23, 2016 #1 Hi, Can anyone tell how to get selected item value in the customlistview itemclick. I am not getting value of the selected item in the list. please help. Sub Lstplan_ItemClick (Index As Int, Value As Object) Dim lstval As String lstval=Lstplan.GetValue(Index) End Sub thanks sasidhar
Hi, Can anyone tell how to get selected item value in the customlistview itemclick. I am not getting value of the selected item in the list. please help. Sub Lstplan_ItemClick (Index As Int, Value As Object) Dim lstval As String lstval=Lstplan.GetValue(Index) End Sub thanks sasidhar
LucaMs Expert Licensed User Longtime User Sep 23, 2016 #2 If you added the items using AddTextItem, the Value parameters is... the Value: Sub Lstplan_ItemClick (Index As Int, Value As Object) Log("Value = " & Value End Sub Upvote 0
If you added the items using AddTextItem, the Value parameters is... the Value: Sub Lstplan_ItemClick (Index As Int, Value As Object) Log("Value = " & Value End Sub
S sasidhar Active Member Licensed User Longtime User Sep 23, 2016 #3 Hi thanks for quick reply. i have added items using AddtextItem.. tried as you mentioned. still no result, can you pls eloborate. Sub Lstplan_ItemClick (Index As Int, Value As Object) Msgbox(Value,"test") End Sub Upvote 0
Hi thanks for quick reply. i have added items using AddtextItem.. tried as you mentioned. still no result, can you pls eloborate. Sub Lstplan_ItemClick (Index As Int, Value As Object) Msgbox(Value,"test") End Sub
LucaMs Expert Licensed User Longtime User Sep 23, 2016 #4 If you added something like: Code: Copy Lstplan.AddTextItem("Text to show", "Text you will get as Value") where Lstplan is your CustomListView, then: LucaMs said: Sub Lstplan_ItemClick (Index As Int, Value As Object) Log("Value = " & Value End Sub Click to expand... will log: Value = Text you will get as Value Upvote 0
If you added something like: Code: Copy Lstplan.AddTextItem("Text to show", "Text you will get as Value") where Lstplan is your CustomListView, then: LucaMs said: Sub Lstplan_ItemClick (Index As Int, Value As Object) Log("Value = " & Value End Sub Click to expand... will log: Value = Text you will get as Value
S sasidhar Active Member Licensed User Longtime User Sep 23, 2016 #5 Thank you so much for detailed example. i was sending empty here, so getting empty result. I got it. Lstplan.AddTextItem("Text to show", "") thanks sasidhar Upvote 0
Thank you so much for detailed example. i was sending empty here, so getting empty result. I got it. Lstplan.AddTextItem("Text to show", "") thanks sasidhar