Android Question CustomListView

sasidhar

Active Member
Licensed User
Longtime User
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
 

sasidhar

Active Member
Licensed User
Longtime User
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

sasidhar

Active Member
Licensed User
Longtime User
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
Top