Subj : Re: SpiderMonkey 1.5 RC5a - Arrays with name/value pairs... How do I...? To : netscape.public.mozilla.jseng From : "Robert Bates" Date : Sat Jun 28 2003 09:11 am Never mind... I was just perusing some JS refs and other goodies and noticed that those are defined as properties... Doh! "Robert Bates" wrote in message news:3KbLa.29037$hV.1604829@twister.austin.rr.com... > OK, I want to implement a global array property so that I can initialize it > from the JS host app and then set/get values using the index operator in JS: > > scriptVars["foo"] = "bar"; > > and then after script execution is over have my host app enumerate the array > and persist the name/value pairs for later use. So far the only array manip > functions I see take only a numeric index. Can someone point me to the > right set of API methods? > > Thanks! > > -- > > ========== > Robert Bates > Austin, Texas - USA > http://home.austin.rr.com/robsplace > > .