I have the following two functions, the checknull one being called repeatedly in the blah() one (obviously the entire blah function isn't there) . If FarmName has length 0, the output from it all is TrueFalseTrue.
Basically, it sets valid as False, and writes it as such within the function, but then when it leaves the chenull function to go back to the main part of the blah function, valid is not longer False and is treated as though it had never changed.
Is this because I am using one function within another? Any other suggestions which might shed some light on this? thx
function checknull(theString,validvar)
theString = Trim(theString) validvar = "True"
if Len(theString) = 0 then
valid = "False"
validvar = "False"
end if
Response.Write valid
end function
function blah()
valid = "True"
call checknull(FarmName,vFarmName)
Response.Write valid
end function