[thelist] ASP: passing objects ByRef

David at softv.net David at softv.net
Mon Apr 22 09:47:00 CDT 2002


In VB6.0 (and VBScript), all method parameters are passed ByRef by default.
This means that the memory address of the variable is passed, instead of
making of the variable and passing that copy. As far as passing variants
(all vars in VBScript are variants, right?) with a subtype of Object, I
would guess that passing ByRef would be more efficent, since you are just
passing the memory location, instead of a copy of the entire object.

Dave




More information about the thelist mailing list