ok... the issue here is the visibility of the variables.
in
Function strFunctionTest(strTest)
strTest = "New"
strFunctionTest = strTest
End Function
you are only setting strFunctionTest to strTest, but in the return of it, you are not using it. Try something more like this
Response.Write("This is the value of strTest: " & strTest & "<br>")
Response.Write("This is the value of strArguement: " & strArguement & "<br>")
strTest = strFunctionTest(strTest);
Response.Write("This is the returned value of the function when strArguement is passed: " & strTest & "<br>")
seems odd what you are trying doing, but I assume you are only testing.
You could also change your function to do this
Function strFunctionTest(strTest)
strFunctionTest = "New"
End Function
But then, I'm not sure why you would be passing in a variable. Any ways, what I did above in the Response.Write should be what you are looking for.
Main Topics
Browse All Topics





by: GaryC123Posted on 2003-09-15 at 16:18:52ID: 9366927
Uh? You're passing it into a function and changing the value.