=>here is the program of a pass by reference vs. pass by value in VBScript.
program:
Dim a,b
a=10
b=20
Function fun(ByVal x,ByRef y)
x=100
y=200
End Function
Call fun(a,b)
Msgbox a&" "&b
program:
Dim a,b
a=10
b=20
Function fun(ByVal x,ByRef y)
x=100
y=200
End Function
Call fun(a,b)
Msgbox a&" "&b
No comments:
Post a Comment