标题:报错下标越界,怎么解决!!!
取消只看楼主
awke002
Rank: 2
等 级:论坛游民
帖 子:201
专家分:55
注 册:2008-7-22
 问题点数:0 回复次数:0 
报错下标越界,怎么解决!!!
这是一段接受表单中文本框传过来的的值,并打印!但是报了下面的错,不知道怎么解决,求助。。。
                 keyword= request("keyword")
        If keyword <>"" then
           keyword=replace(keyword,"'"," ")
           keyword=replace(keyword,","," ")
           keyword=replace(keyword,"["," ")
           keyword=replace(keyword,"]"," ")
           keyword=replace(keyword,","," ")
           keyword=ltrim(rtrim(keyword))
           keywordlist=split(keyword," ")
           for  i=0 to ubound(keywordlist)
           keywordlist(i)=trim(keywordlist(i))
           
           next
           response.Write(keywordlist(i))
        end if
这段代码的错误提示:

Source line: response.Write(keywordlist(i))
Description: 下标越界: 'i'

可以帮我看看么!麻烦啦 !!!
搜索更多相关主题的帖子: 越界 
2008-09-22 14:49



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




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

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