T
Thomas Lebrecht
When I call a sub-routine in a VBscript and I want to pass
two System.Collections.ArrayList objects
are these objects then passed by value or by reference?
In other words: are possible modifications (done in the subroutine) visible
OUTSIDE the subroutine or not?
Example:
Set arr1 = CreateObject("System.Collections.ArrayList")
Set arr2 = CreateObject("System.Collections.ArrayList")
.....<fill arr1 and arr2>...
.....
call mycalc
....
sub mycalc parm1 parm2
...
parm1.removeAt 1
...
end sub
Thomas
two System.Collections.ArrayList objects
are these objects then passed by value or by reference?
In other words: are possible modifications (done in the subroutine) visible
OUTSIDE the subroutine or not?
Example:
Set arr1 = CreateObject("System.Collections.ArrayList")
Set arr2 = CreateObject("System.Collections.ArrayList")
.....<fill arr1 and arr2>...
.....
call mycalc
....
sub mycalc parm1 parm2
...
parm1.removeAt 1
...
end sub
Thomas