
Passing JScript variables by reference to an ActiveX component
I have recently done a lot of research into
ActiveX components. After figuring out how to
achieve call-by-reference semantics for arguments
passed to an ActiveX component method from
VBScript, I discovered that an almost identical
invocation of this method in JScript does not
modify the passed argument(s). I did read in the
JScript documentation that only objects, strings,
and arrays are passed by reference but even when
the argument is of string type prior to the
method call, it does not contain the appropriate
value after the call returns. Interresting too
is that the return value does work in both
VBScript and JScript. So if anyone could shed
some light on this problem it would be much
appreciated.
Sent via Deja.com http://www.*-*-*.com/
Share what you know. Learn what you don't.