Re: [Hecl-devel] State in Hecl Program
Brought to you by:
davidw
From: David W. <dav...@gm...> - 2008-10-01 09:22:51
|
> The correct way to do this is: Oops, there is an error here: > Vector v = new Vector(); > v.addElement(new Thing("a")); > v.addElement(new Thing("b")); > v.addElement(new Thing("c")); > > (or of course v can just be an empty vector) > > interp.setVar("recipients", new Thing(v)) interp.setVar("recipients", ListThing.create(v)); Also it's worth mentioning that Hecl can figure out and parse a string up into a list, so you could also simply do: interp.setVar("recipients", new Thing("a b c d")); -- David N. Welton http://www.welton.it/davidw/ http://www.dedasys.com/ |