如何用ASP转换字符串为算式?

a="8+8"
现在我需要把字符串A变为数学计算式:
a=8+8 (返回值16)

应该如何用ASP实现?

a=eval("8+8")
温馨提示:答案为网友推荐,仅供参考
第1个回答  2009-07-13
dim x,y
x=8
y=8
response.write "a=8+8<br>a="&x+y
第2个回答  2009-07-13
a=number(a)
response.write a
第3个回答  2009-07-13
<%
a="8+8"
execute("b="&a)
response.write b
%>
相似回答