[Gambas-user] I want to clear a combobox

Benoit Minisini gambas at ...1...
Mon Mar 14 15:46:50 CET 2005


On Monday 14 March 2005 15:39, francesco wrote:
> Why this code isn't working
>
>   cmbSez.clear
>   FOR EACH rData
>     cmbSezioni.Add(rData["Sez"])
>
> NEXT
>
> It gives me "Index out of Range"
>
> It seems that when I delete the content of a combobox, its index goes to
> -1. I need to populate a combobox with a field resulting from a query, and
> every time I execute the query, the combobox should change with new records
> , but deleting previous values.
>
> Francesco
>

Please send your project, or at least make another project from this one that 
raises the same error. Otherwise I can't help you...

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list