Android Question For Each CustumListView

Discussion in 'Android Questions' started by mperez, Jun 10, 2019.

  1. mperez

    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

    Code:
    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
     
  2. mangojack

    mangojack Well-Known Member Licensed User

    Tip ... Use Log rather than Msgbox() when debugging.

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

    Code:
    For i = 0 To LV1.Size -1
        
    'Dim Test As Object = LV1.GetValue(i)     
        Log(LV1.GetValue(i))
    Next
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice