程序和进程的区别:请问一个asp的问题

来源:百度文库 编辑:查人人中国名人网 时间:2024/04/28 11:45:19
sql = "select sum(领用数量) from lsrbb"
set results = conn.execute(sql)
if not results.eof then
p=20000
lysl=round(results(0),2)
if lysl>p then response.write "<font color=red>"&lysl&"</fond>"
else response.write lysl
end if
end if
results.close
set results = nothing
请高人指点 这代码错在那 我一预览就说缺少end if 语句

if lysl>p then
response.write "<font color=red>"&lysl&"</font>"
else
response.write lysl
end if

你把then和else后面都换一下行。这样看起来舒服点,可读性强点。
另外response.write "<font color=red>"&lysl&"</font>" 这是</font>
不是</fond>

if lysl>p then response.write "<font color=red>"&lysl&"</fond>"
后面缺少
end if