logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: $combo->list = ( $combo->list, "append1",...: msg#00043

Subject: Re: $combo->list = ( $combo->list, "append1",...
Try:
$combo->list->append_items("HI");

Also, in general you do not do:
$obj->some_property = $value

Instead, you do:
$obj->some_property($value);

The "property" is actually an object method subroutine which sets the
value you specify, and does any internal operations necessary because of
your new setting.


On Wed, 2003-02-26 at 11:43, Andy Ford wrote:
> I am trying to use the combo->list = ($combo->list, "new entry") to
> append a 'new entry' to a combo box.
> 
> When I use it as thus....
> 
> sub func
> {
>    my ( $widget, $combo ) = @_;
>    combo->list = ($combo->list, "HI");
> }
> 
> I get the following error ...
> 
> Can't modify non-lvalue subroutine call at .... etc etc
> 
> How do I append text to a combo box!?
> 
> Thanks
> 
> 
> Andy Ford
> 
> _______________________________________________
> gtk-perl-list mailing list
> gtk-perl-list@xxxxxxxxx
> http://mail.gnome.org/mailman/listinfo/gtk-perl-list
-- 
Scott Smith <ssmith@xxxxxxxxxxxxxxxx>



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>