Subj : Array-like calls... I'm totally confused now :-( To : netscape.public.mozilla.jseng From : "Andreas Podgurski" Date : Sat Feb 07 2004 03:20 am Hi there! I've searched the archives for a solution, but it seems I'm too stupid to read it correctly out. Would be nice, if someone could give me a hint... I've created a class which reads database data, some weird stuff with inherited tables and so. In this class, the columns of the base tables are hard-coded but those of derived are not. I want to access them like an named array element, what would be something like DBLock[columnname]=data; 1) Is it correct to use JS_SetProperty for this purpose in the C-API? 2) In an earlier post there was the talk about overwriting the classes setter and getter to interpret the column name. Is this right or have I misunderstood it? 3) Is it really possible to create a named array element in my own class in runtime? The thing is that I'm storing the read column data and its name in an C-Array and want to interface it to both JavaScript and C via the SpiderMonkey-API. I took a look at the jsarray.c, but that didn't help me any further, especially because this class doesn't implement an own class setter/getter pair as I thought. Would be very nice, if someone could clarify my confusion and tell me what the correct way to do this is... Thanks in advance, Andreas "SunSailor" Podgurski .