Hi Andreas, I think that you described the problem - the value is a string. I think that you need first to marshal type to type that the property can accept (for example number, boolean, etc). Information about property type should be accessible.
-- Best regards - Petr Kobalicek <http://kobalicek.com> On Wed, Feb 10, 2010 at 4:00 PM, Andreas G. <[email protected]> wrote: > > hello guys! > > we ran into this problem today and can not find any (clean) solution right > now. we create an array of attributes (defined in an xml-file) and would > like to set object-properties dynamically. > > var arr = []; > > ... > > for( var i = 0, len = arr.length; i<len; i++ ) > { > widget.set( { arr[i][0] : arr[i][1] } ); // 0 = name, 1 = value > } > > ... > > both, name and value, are strings. is there any clean solution to do > implicit type conversion? > -- > View this message in context: > http://n2.nabble.com/implicit-type-conversion-tp4548364p4548364.html > Sent from the qooxdoo mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, > Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW > http://p.sf.net/sfu/solaris-dev2dev > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
