+ -
当前位置:首页 → 问答吧 → 循环数组出错

循环数组出错

时间:2011-08-03

来源:互联网

keywArr=split(keyw,",")
for i=0 to ubound(keywArr)
    tit=keywArr(i)
    'xx=conn.execute("select id,tit from tags where tit='"&tit&"'")(0)
    readList=readList&"<a href=search-"&xx&".html>"&tit&"</a> | "
next
这段代码不知道哪里错了,请达人帮我。其中注释掉的部分删除后正常,但我需要那个id故不能删除。另外,如果修改成
xx=conn.execute("select id,tit from tags")(0)
xx=conn.execute("select id,tit from tags where id=1")(0)
xx=conn.execute("select id,tit from tags where tit='PS'")(0)等都是正常的。且这个变量tit也是真实有效的(有输出文字部分)。加cStr也无效………………

[ 本帖最后由 glxwl 于 2011-8-3 14:42 编辑 ]

作者: glxwl   发布时间: 2011-08-03

跟这个问题是不是同一原因:http://bbs.blueidea.com/thread-3029774-1-1.html
都是循环数组,都出错。。。郁闷了,求帮忙啊

[ 本帖最后由 glxwl 于 2011-8-3 14:44 编辑 ]

作者: glxwl   发布时间: 2011-08-03

热门下载

更多