if not rs.EOF then什么意思

来源:百度知道 编辑:UC知道 时间:2024/06/08 08:29:46
if not rs.EOF then
response.write "<script language=javascript>alert('对不起,用户名已经被人注册');history.back(-1)</script>"
else
response.write "注册成功"
response.end
end if
Rs.addnew
Rs("user")=a
rs("password")=b
rs.update
response.write " 写入成功"
%>

EOF 指示当前记录位置位于 Recordset 对象的最后一个记录之后。也就是说,当前位置后面没有记录了。
所以if not rs.EOF then的意思是:
当前位置后面还有记录,也就是记录不为空。

if not rs.EOF then什么意思 '如果定义的记录集对象rs,资料不为空的话即资料库中的表,有资料

if rs.EOF then什么意思 '如果定义的记录集对象rs,资料为空的话