Hi,
is it possible to send a parameter to a sub / function byref, i.e. so we can change the value stored at the address where the variable is passed from.

I was under the impression this wasn't the case, but have seen an example where the parameter is passed as a variant.

e.g.
VB:

Public Function Get_Age(ByRef age As Variant) As Boolean

age = 5
Get_Age = True


End Function


ASP:
<%
dim lo_age
dim li_age
dim lb_age
set lo_age = Server.CreateObject("Test.Age")

li_age = 3

lb_age = lo_age.Get_Age(li_age)

Response.Write "Anything" & li_age
%>

Should I expect this to write 5 or 3 or nothing.?