Hi,
I'm trying to put new items in a Combo Box widget but instead
of having only the new items, they accumulate.
I maintain an array and I use that array to fill the Combo Box:
@activeList = grep (/$activeFilter/, @$configFile);
$form->MyComboBox->List->add_items(@activeList);
I've tried:
@activeList = grep (/$activeFilter/, @$configFile);
$form->MyComboBox->List->replace_items(0, @activeList);
And:
$form->MyComboBox->List->delete_items(@activeList);
@activeList = grep (/$activeFilter/, @$configFile);
$form->MyComboBox->List->add_items(@activeList);
But still, the items just keep accumulating while the @activeList
array only contains the chosen elements at each pass.
And I'm not sure about the use of delete_items.
How can one empty the combo box widget before putting in it a
new list ?
Thanks.
Received on Wed 08 Mar 2006 - 23:45:41 CET
This archive was generated by hypermail 2.2.0 : Sat 19 Mar 2011 - 18:35:06 CET