gregorio_adrian_gimenez Active Member Licensed User Longtime User Jul 12, 2020 #1 Hello everyone, perhaps my question is very simple. How can I get a specific index from a custom list view, if I know the value? Regards!
Hello everyone, perhaps my question is very simple. How can I get a specific index from a custom list view, if I know the value? Regards!
Erel B4X founder Staff member Licensed User Longtime User Jul 13, 2020 #2 B4X: Sub FindValueIndex(Value As Something) As Int For i = 0 To CLV.Size - 1 If CLV.GetValue = Value Then Return i Next Return -1 End Sub Upvote 0
B4X: Sub FindValueIndex(Value As Something) As Int For i = 0 To CLV.Size - 1 If CLV.GetValue = Value Then Return i Next Return -1 End Sub