标题:strTemp中的循环问题
取消只看楼主
dou521
Rank: 1
等 级:新手上路
帖 子:42
专家分:0
注 册:2009-3-19
结帖率:91.67%
 问题点数:0 回复次数:1 
strTemp中的循环问题
循环错误,请高手指点

sub ArticleContent(intTitleLen)
    dim i,strTemp
           i=1
              strTemp=""  
              strTemp= strTemp & "<table width=100% border=0 cellspacing=0 cellpadding=0>"
              strTemp= strTemp & "<tr>"
    do while not rsArticle.eof
    strTemp= strTemp & "<td>"
              strTemp= strTemp & "<a href=ProductShow.asp?ArticleID=" & rsArticle("articleid") & ">"
    fileExt=lcase(getFileExtName(rsArticle("DefaultPicUrl")))
    strTemp= strTemp & "</td></tr>"
              strTemp= strTemp & "<tr><td><a href=ArticleShow.asp?ArticleID=" & rsArticle("articleid") & ">" & rsArticle("Title") & "</a>"
               strTemp= strTemp & "</td>"
                    if i mod 5= 0 then
          strTemp= strTemp & "</tr>"
          end if
                    rsArticle.movenext
                    i=i+1
                    strTemp= strTemp & "</table>"
  response.write strTemp
  if i>=15 then exit do
loop
end sub
搜索更多相关主题的帖子: strTemp 
2010-03-04 10:48
dou521
Rank: 1
等 级:新手上路
帖 子:42
专家分:0
注 册:2009-3-19
得分:0 
帮我解决下呀
2010-03-04 12:31



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-298539-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.217036 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved