Newbie question: populating combobox

Discussion in 'Questions (Windows Mobile)' started by WiLey2000, Mar 21, 2009.

  1. WiLey2000

    WiLey2000 Member Licensed User

    Hi all,

    Is it possible to populate a combobox from a table column?
    If so, could someone give me an example.

    Thanks
    WiLey2000
     
  2. specci48

    specci48 Well-Known Member Licensed User

    Hi WiLey2000,

    it is possible, but you have to cycle through all rows of the table. There is no "standard"-function for that:

    Code:
    Sub FillComboFromTable
       
    For i = 0 To Table1.RowCount - 1
          ComboBox1.Add(Table1.Cell(
    "ComboColumn", i))
       
    Next
    End Sub

    specci48
     
  3. WiLey2000

    WiLey2000 Member Licensed User

    thanks specci48 I should of known that!

    WiLey2000
     
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