:: Forum >>

setting array element value for defined property

I feel a bit stupid because I think I might be placing a silly question:
how do I set a [nth] element value of a custom property defined as an array?

Example:

obj.defineProperty("colors", new Array()) ;
...
obj.setProperty("colors", "red")[n] ;
or
obj.setColors("red")[n] ; ?


Thanks.
Gianni Luppi
Tuesday, February 3, 2009
obj.setProperty("colors", "red", n);

or

obj.setColors("red", n);
Alex (ActiveWidgets)
Tuesday, February 3, 2009

This topic is archived.


Back to support forum

Forum search