Thank you! That helped. Best regards - Claus
Am Donnerstag, den 19.08.2010, 11:37 +0200 schrieb Jean-Baptiste BRIAUD -- Novlog: > Hi, > > You can do the following in js : > var someValue = ... > var map = []; > map["key"] = someValue; > > This is using indexed array. > > You can also use dynamic object : > var map = {}; > map.key = value; > > It can act like Java map but there is no map in javascript. > > Have a look here for details : > http://www.hunlock.com/blogs/Mastering_Javascript_Arrays > > > On 19 août 2010, at 11:14, Claus Straube wrote: > > > Hi all, > > > > I want to create something like a (Java) map in qooxdoo. Here some > > pseudo code: > > > > var map = new Map(); > > map.put('x', 'y'); // x is the key, y the value > > map.get('y'); > > > > I've now played around with new qx.core.Object() and tried to put in a > > object instance some new properties on runtime. That fails (error: no > > property for x)... > > > > Has anyone an idea, how can I get a simple map like the pseudo code > > above? > > > > Thanks in advance - Claus > > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by > > > > Make an app they can't live without > > Enter the BlackBerry Developer Challenge > > http://p.sf.net/sfu/RIM-dev2dev > > _______________________________________________ > > qooxdoo-devel mailing list > > qooxdoo-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > qooxdoo-devel mailing list > qooxdoo-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > -- claus straube phone +49-89-1265-3103 mobile +49-176-49673717 skype clausstraube web http://www.catify.com office room 1.122, heßstr. 89, 80797 munich
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel