Subj : Re: Missing the getProperty/setProperty mark with strings To : netscape.public.mozilla.jseng From : "Sterling Bates" Date : Sun Oct 26 2003 01:54 am "Brendan Eich" wrote in message news:3F9B1BD2.9040106@meer.net... > > Result := jsval(JS_NewString(FContext,PChar(str),Length(str))); > > Result := jsval(StringToJSString(str)); > > Casting to a jsval is wrong (if that's what jsval(...) does). You need > to set the right tag in the low order 3 bits, as STRING_TO_JSVAL does. The cast was fine (I think that's what the S_T_JSVAL macro does as well), I just needed to |or| it with JSVAL_STRING. I swear I tried that several times long ago. :-/ When tech support is looking over your shoulder... Well, now I get an error destroying the context, but I'll look that one up some more :-) Thanks for your help! Sterling .