【www.gdgbn.com--面向对象编程】

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 "all"
    
    for k=0 to rst.fields.count-1
     response.write ""&rst(k).name&""
    next
    response.write ""
 
 for i=0 to allcount
    response.write ""&i&""
    for k=0 to rst.fields.count-1
     response.write ""&rst(k).value&""
    next
    response.write ""&vbcrlf
    rst.movenext
 next
 response.write "Total records ["&allcount+1&"]
"
end sub

本文来源:http://www.gdgbn.com/jsp/3353/