关于ASP读数据库时的指针rs.bof 和 rs.eof
成功志
关于ASP读数据库时的指针rs.bof 和 rs.eof
2013-4-29 ok12
if rs.bof then 

表示:如果当前指针的位置是在第一行记录之前 




if rs.eof then 

表示:如果当前指针的位置是在最后一行记录之后





if not rs.eof then  

表示:如果当前指针的位置没有到达最后一条记录





if not rs.bof then  

表示:如果当前指针的位置没有到达第一条记录





常用下面两条 

if not (rs.bof and rs.eof) then 

表示:指针位于 RecordSet 的当中(并非是最后一条和第一条),说明一定有记录。 




if rs.bof and rs.eof then 

表示:没有任何记录 
发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容