[Gambas-user] Populating combobox from recordset

Mike Keehan Mike at ...680...
Thu Mar 6 11:54:34 CET 2008


Kari Laine wrote:
> Hi,
>
> I give up. Could someone please tell me howto populate ComboBox from
> resultset. Actually I need to copine two fiels from resultset as an item
> - like this   id&  name .
>
> Best Regards
> Kari
>
>

Hi Kari.

I load up Combos from a text file like this:-

   Dim lContents as String

   lContents = File.Load("ComboList.txt")
   MyCombo.List = Split(lContents, gb.NewLine)


The Combo.List takes an array of strings.  I'm not sure what a 
resultset is composed of, but you could build an array of strings from 
it I think.

Mike





More information about the User mailing list