Android Question For Each CustumListView

mperez

Member
Licensed User
hello, someone can help me I'm trying to go through the contents of a CustomListView but I can not get the data.
I'm trying to do it this way

B4X:
 Dim i As Int
  
  
  For i=0 To LV1.GetSize -1
            Dim Test As Int=LV1.GetValue(i)
            Msgbox(Test,"")
  Next

but I can only get a registration I need
I appreciate any comment
 

mangojack

Expert
Licensed User
Longtime User
Tip ... Use Log rather than Msgbox() when debugging.

The Value is declared as Object.
Just use LV1.Size rather than LV1.GetSize

B4X:
For i = 0 To LV1.Size -1
    'Dim Test As Object = LV1.GetValue(i)     
    Log(LV1.GetValue(i))
Next
 
Upvote 0
Top