ASPでは、sets = oconn.execute()を使用してRecordset.RecordCountを使用してレコード番号を取得すると、その値は-1であることがわかります記録番号を取得する方法。
<Dim Oconn、orgen、arows dim i、j set oconn.createobject(adodb.connection)oconn.openプロバイダー= Jet.oledb.0; setrs = oconn.execute(nc_softlistから上位5枚、softid、softnameを選択します)response.write recordcount:&orgencordcountcount&<br/> ows(-1) 'ors.eof = true、arows(color、row)setrs =何もoconn close()set oconn = isarray(arows)then respons.write rescordcount:&ubound(arows、2)+1&<br/> i = 0からubound(arows、2)for j = 0からubound( arows、1)respons.write arows(j、i)if j <> ubound(arows、1)then respons.write、next respons.write <br/>次のend if>