私は今本当に厄介だと感じています。次のことは十分に簡単ですか?
コードコピーは次のとおりです。
<%
Dimi、J、Icols
i = 0 '//ループ用にiを定義します
icols = 3 '//連続していくつの列がありますか(正の整数)
Response.write( "<tableWidth =" "100%" "border =" "1" "cellspacing =" "2" "cellpadding =" "" ""> <tr> "&vbnewline)//出力テーブルヘッダーと最初のtr
dowhilenotors.eof '// forors.recordcountnextを使用して出力レコードを開始しました
ifi> 0andimodicols = 0thenresponse.write( "</tr> <tr>"&vbnewline) '//列の数がICOLSラインブレークに等しい場合
i = i+1
respons.write( "<tdwidth =" ""&formatpercent(1/icols、0)& "" ""> output "&i&" record </td> "&vbnewline)
ors.movenext
ループ '//出力レコードセットを終了します
close
forj = 1toicols-1 '//空のレコードを補い始め、最大1つのicols-1
ifimodicols = 0thenexitfor '//列の数は十分ではなくなりました。
i = i+1
respons.write( "<tdwidth =" ""&formatpercent(1/icols、0)& "" ""> fill in the "&j&" record </td> "&vbnewline)
次
respons.write( "</tr> </table>"&vbnewline) '//出力テーブルテール
%>