Spanish ListView con indice

Discussion in 'Spanish Forum' started by mvera, Aug 27, 2015.

  1. mvera

    mvera Active Member Licensed User

    hola estoy asignando valores a un ListView asi:

    ListView1.AddTwoLines("LAVADO",11)
    ListView1.AddTwoLines("REPARACION",12)
    ListView1.AddTwoLines("RECAMBIO",13)

    Mi problema es que no puedo tomar el valor del indice

    ej,

    si pongo lavado necesito un 11 , pero me muestra un 0
    si pongo reparacion necesito un 12 , pero me muestra un 1

    Espero alguien me pueda ayudar
    gracias.
     
  2. cimperia

    cimperia Active Member Licensed User

    You may want to try this:

    Code:
    Listview1.AddTwoLines2("LAVADO",11Array As Object("LAVADO",11 ))
    Listview1.AddTwoLines2(
    "REPARACION",12,Array As Object("REPARACION",12 ))
    Listview1.AddTwoLines2(
    "RECAMBIO",13,Array As Object("RECAMBIO",13 ))

    Sub ListView1_ItemClick (Position As Int, Value As Object)
       
    Dim val() As Object = Value
         
       
    Log(val(0))
       
    Log(val(1))
       
    End Sub
     
    Last edited: Aug 28, 2015
  3. mvera

    mvera Active Member Licensed User

    thank you
     
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