I am using WIN32::GUI and I have separate some Windows in different .pm modules. I have add the -name => "PackageName::ControlName" in order to use the event in each module and it works ... ..but I am terrible confuse because I have a ListBox that change this information when a user click on a Button...but I can remove the previous items. I can Add items,but not remove.I have tried -- >Reset() and ->Clear(). But the list don't appear. What is going wrong ???
Is necessary to use 'use strict' in this case or is only a help? The extract of the event: # ======================== sub baquest_Click{ # ======================== $escollit=$comboalu->GetString($comboalu- >SelectedItem()); $pos=0; for $napsicols (obtenir_ref_assignatures ($escollit)) { $comboassig->RemoveItem($pos); $cargols = $napsicols->{Nomassig}; print "------->>>>>>>>>>>>>$pos $cargols \n"; $comboassig->InsertItem($cargols,$pos); $pos++; } } Thanks !!! Guillem Cunillera i Wefers