Subj : Confused about enumerating To : netscape.public.mozilla.jseng From : Brian Genisio Date : Tue Feb 17 2004 12:24 pm Hi all, I have an object, which is similar to an array, and I want it to be enumerated in a specific way. For instance, I would want the following: for( name in myObject) ... do something with name But, the properties are based off the data in the object, so I have not registerd them as properties, with JS_SetProperty. How do I handle this enumeration? I have set my enumeration function for the object in the JSClass struct, and I get an object in that callback, but I am not sure what I am supposed to do. The only thing I can think of, is to add the properties to the object, when the enumeration method is called. Is this correct? Brian .