[Gambas-user] how to fill combobox with specific index from a array matrix

PICCORO McKAY Lenz mckaygerhard at ...626...
Fri Jan 31 16:59:47 CET 2014


i try to fill combobox but i cannot access array objects by index names:

ComboBoxLinDest.Add(objetivodestino["destino_descripcion"],
objetivodestino["destino_id"])

the code to fill array matrix are:

1) in transpor class

Public Function GetDestinos() As String[]
    Dim RelenosCombox As New String[]
    hresul = hconn.Find("tb_destino")
    Do While hresul.Available
        RelenosCombox.Add(hresul["destino_descripcion"],
hresul["destino_id"])
    hresul.MoveNext()
    Loop
    Return RelenosCombox
End

2) in form class

Public Sub ComboBoxLinOrig_Click()
    Dim objetivodestino As New String[]
    objetivodestino = operaciones.OtenerDestinos()
    For Each objetivodestino
        Me.ComboBoxLinDest.Add(objetivodestino["destino_descripcion"],
objetivodestino["destino_id"])
    Next
End

the iden and name propierties arenot available, how can i added manualy the
index and values to the combobox?

hurry help!!!!

Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com



More information about the User mailing list