>>I have a combobox name c1. I am populating the combobox through a cursor and setting rowsourcetype = 2. After populating the combobox, I want to add another value using AddListItem, but it doesn't seem to add anything. I'm I missing some here?
>>
>>
>>
>>REQUERY('lv_institution')
>>SELECT i_instname as wn, i_instid as wi from lv_institution WHERE i_kitchen != .T. INTO CURSOR cboloc READWRITE
>>thisform.c1.RowSource='cboloc'
>>thisform.c1.RowSourceType= 2
>>
>>
>>x = .c1.listcount
>>thisform.c1.AddListItem('SELECT INSTITUTION',x+1)
>>
>>
>>thanks
>>Nick
>
>AFAIK AddListItem is only for values and arrays as the RowSource. Just add a new record to your cursor instead.
duh, thank Naomi
Nick