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

Fabien Bodard gambas.fr at ...626...
Fri Jan 31 23:33:23 CET 2014


Public Function GetDestinos() As String[]
    Dim RelenosCombox As New String[]
    hresul = hconn.Find("tb_destino")
    for each hResul
        RelenosCombox.Add(hresul["destino_id"] & "|" &
hresul["destino_descripcion"])
    next
    Return RelenosCombox
End

2) in form class

Public Sub ComboBoxLinOrig_Click()

    ComboBoxLinDest.List = operaciones.OtenerDestinos()

End




More information about the User mailing list