Eric C. Hansen wrote:
> sub addthem{
> $List1->AddString("Item 5");
> $List1->AddString("Item 3");
> $List1->AddString("Item 1");
> $List1->AddString("Item 4");
> $List1->AddString("Item 2");
> $List1->Select(0);
> }

Add() is preferable above AddString():

    sub addthem {
        $List1->Add( 
            "Item 5", "Item 3", "Item 1", "Item 4", "Item 2"
        );
        $List1->Select(0);
    }

nicer and faster, expecially a lot faster when you have a
big number of items to add. also supports things like:

    $List1->Add( @items );

cheers,
Aldo

__END__
# Aldo Calpini
%_ = split undef, join ' ', qw(fahokem 
xritajbugne csuctawer jhdtlrnpqloevkshpr
); print map $_{$_}, sort keys %_;





Reply via email to