I want a function that returns a vector, does anyone knows how?
I've tried in several ways, but none of them seams to work.
1:
Function vector(a)
Dim f_vector(10)
f_vector(0) = a
f_vector(1) = a+1
f_vector(2) = a+10
vector = f_vector
End function
call vector(2)
response.write vector(1) 'of course that does'n work
then I tried
Function vector(a)
Dim f_vector(10)
f_vector(0) = a
f_vector(1) = a+1
f_vector(2) = a+10
vector = f_vector
End function
Dim The_Vector(10)
The_Vector = vector(a)
response.write The_Vector(1) 'This doesn't work to!!
I appreciate any help, thank you
Miguel
I've tried in several ways, but none of them seams to work.
1:
Function vector(a)
Dim f_vector(10)
f_vector(0) = a
f_vector(1) = a+1
f_vector(2) = a+10
vector = f_vector
End function
call vector(2)
response.write vector(1) 'of course that does'n work
then I tried
Function vector(a)
Dim f_vector(10)
f_vector(0) = a
f_vector(1) = a+1
f_vector(2) = a+10
vector = f_vector
End function
Dim The_Vector(10)
The_Vector = vector(a)
response.write The_Vector(1) 'This doesn't work to!!
I appreciate any help, thank you
Miguel