[英]vairable name as value of another variable, ASP classic
i would like to make a function that takes the variable name as a string, check if exist a querystring, or a request.form or a variable with that name and return the value. 我想做一个将变量名作为字符串的函数,检查是否存在查询字符串,request.form或具有该名称的变量并返回值。
function revalue(varName)
if request(varName) <> "" then
revalue= request(varName)
else
revalue= ""
end if
end function
how can i check if the variable called as the value of varName
exist and has a value? 我如何检查称为
varName
的值的变量是否存在并具有值?
... ...
else
if eval(varName) <> "" then
revalue= eval(varName)
else
revalue= ""
end if
end if
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.