Re: fill and strings
"Brian Alliet" <[email protected]>
| Newsgroups | gmane.comp.java.xwt.core |
|---|---|
| Message-ID | <002901c402fe$a54ea540$6601a8c0@brian> |
Charles Goodwin wrote: > If .resource is an arbitrary value (ie calculated at run time), then > you can only set it using a string Keep in mind the 'foo.bar' syntax is just short for 'foo["bar"]'. 'foo.bar.baz.quux' is just 'foo["bar"]["baz"]["quux"]'. Say you have .org.ibex.themes.variable_theme_name.images.foo; You can do var theme = "somestring"; var image = .org.ibex.themes[theme].images.foo Hopefully this clears things up. -Brian