循环数组出错
时间: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 编辑 ]
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-8-3 14:44 编辑 ]
作者: glxwl 发布时间: 2011-08-03
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28