难道 if rs.eof and rs.bof then 和 if rs.bof and rs.eof then 不相等?!

chinareny chinareny 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我有一段代码如下:
rs.open strsql,strcn
if rs.bof and rs.eof then
A
else
B
end if
当我的 rs.recordcount<>0 时却执行了A处的代码!
而我将判断改为:
if rs.eof and rs.bof then
A
else
B
end if
时,相同条件下却执行的是B处的代码!

难道 if rs.eof and rs.bof then 和 if rs.bof and rs.eof then 不相等?!

微软在MSDN98中不是提到可以用判断rs.eof 和 rs.bof 是否指向相同来判断结果集是否为空吗?
...全文
评论 24
收藏 已收藏
分享
返回顶部
chinareny
ASP 28,401 成员 356,940 内容