ThorstenStueker Member Licensed User Sep 18, 2020 #1 I have a string array I want to shoe in a custom listview but it looks like I am to stupid to. I need help for it. Thanks.
I have a string array I want to shoe in a custom listview but it looks like I am to stupid to. I need help for it. Thanks.
AnandGupta Expert Licensed User Longtime User Sep 18, 2020 #2 Just show the codes you have done for it and we may help you. Regards Anand Upvote 0
ThorstenStueker Member Licensed User Sep 18, 2020 #3 Only thing I am not getting is in addtextitem(string, value) what means Value? Upvote 0
Andrew (Digitwell) Well-Known Member Licensed User Longtime User Sep 18, 2020 #4 Value is an item that you want to associate with that entry in the CLV. For example, if your CLV was a list of text strings which described different websites, you may have B4X: clv.addtextitem("Google","https://google.com") so when the user taps the item the clv_itemclick event is fired B4X: private sub clv_itemclick(pos as int,value as object) ' if you clicked on the Google item, value will not contain "https://google.com" 'you would need to assign it to a string before use end sub Hope that helps. Upvote 0
Value is an item that you want to associate with that entry in the CLV. For example, if your CLV was a list of text strings which described different websites, you may have B4X: clv.addtextitem("Google","https://google.com") so when the user taps the item the clv_itemclick event is fired B4X: private sub clv_itemclick(pos as int,value as object) ' if you clicked on the Google item, value will not contain "https://google.com" 'you would need to assign it to a string before use end sub Hope that helps.
ThorstenStueker Member Licensed User Sep 18, 2020 #5 Super Answer thank you, makes really nice functionality!!!! Upvote 0