根据传入的recordset对象实例,按表格输出内容子过程

作者:袖梨 2022-06-30
function iif(cond,expr1,expr2)
 if cond then
    iif = expr1
 else
    iif = expr2
 end if
end function
sub outinfo(rst)
 allcount=rst.recordcount-1
 response.write ""
    
    response.write ""
    
    for k=0 to rst.fields.count-1
     response.write ""
    next
    response.write ""
 
 for i=0 to allcount
    response.write ""
    for k=0 to rst.fields.count-1
     response.write ""
    next
    response.write ""&vbcrlf
    rst.movenext
 next
 response.write "
all"&rst(k).name&"
"&i&""&rst(k).value&"
Total records ["&allcount+1&"]"
end sub

相关文章

精彩推荐