:: Forum >> Version 2 >>

setting array element value for defined property

More information on this topic is available in the documentation section: /aw.system.model/setproperty.html.

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 /aw.system.model/setproperty.html

Documentation:

Forum search