67biscuits Member Apr 13, 2025 #1 'generics Public clv As CustomListView B4X: Private Sub clv_ItemClick (Index As Int, Value As Object) Dim lv As CustomListView = Sender Dim t As Int = lv.tag 'this line throws unknown member: tag error message Log($"Generic ${t}"$) End Sub I know this has come up before, in a post back in 2020, I must be doing some wrong. I have similar instances elsewhere that DO NOT have this issue. IS it just about CustomListViews??
'generics Public clv As CustomListView B4X: Private Sub clv_ItemClick (Index As Int, Value As Object) Dim lv As CustomListView = Sender Dim t As Int = lv.tag 'this line throws unknown member: tag error message Log($"Generic ${t}"$) End Sub I know this has come up before, in a post back in 2020, I must be doing some wrong. I have similar instances elsewhere that DO NOT have this issue. IS it just about CustomListViews??
Erel B4X founder Staff member Licensed User Longtime User Apr 14, 2025 #2 Moved to the questions forum. You should use lv.AsView.Tag. It is related to CustomListView being a relatively "old" implementation. Upvote 0
Moved to the questions forum. You should use lv.AsView.Tag. It is related to CustomListView being a relatively "old" implementation.
67biscuits Member Apr 14, 2025 #3 so it's just peculiar to the customlistview,then? is there a 'modern' way to implement the structure? I have 5 clvs the user can 'pick' from to delete elements Upvote 0
so it's just peculiar to the customlistview,then? is there a 'modern' way to implement the structure? I have 5 clvs the user can 'pick' from to delete elements
Erel B4X founder Staff member Licensed User Longtime User Apr 15, 2025 #4 You should use AsView.Tag with CLV. Upvote 0