M
Mike
This may be stupid but
Function TestFunction(strValue)
TestFunction = strValue + 1
End Function
y = 1
For x = 1 to 10
Response.write TestFunction(y) & "<br>"
y = y + 1
Next
produces
2
3
4
5
6
7
8
9
10
11
Shouldn't it produce
2
4
6
etc.
It seems like the function is only running the first time through the loop.
What am I missing?
Thanks
Mike
Function TestFunction(strValue)
TestFunction = strValue + 1
End Function
y = 1
For x = 1 to 10
Response.write TestFunction(y) & "<br>"
y = y + 1
Next
produces
2
3
4
5
6
7
8
9
10
11
Shouldn't it produce
2
4
6
etc.
It seems like the function is only running the first time through the loop.
What am I missing?
Thanks
Mike