[Ironruby-core] AddRange problem

Dermot Hogan lists at ruby-forum.com
Fri Feb 8 10:10:40 EST 2008


Michael Letterle wrote:
> For some reason it seems to be passing it in as
> 
> self.listBox1.Items.AddRange('a', 'b', 'c')
> 
> Odd..
> 
> Regardless though, as a work around for now you can do this:
> 
> ['a','b','c'].each {|item| self.listBox1.Items.Add item}
> 

Unfortunately I can't do that ... I have to use AddRange because that's 
what the ListBox control + Form Designer generates. So I think I'm stuck 
:(


Dermot
-- 
Posted via http://www.ruby-forum.com/.


More information about the Ironruby-core mailing list