为什么出错?

alpa 2005-08-16 04:49:02
set content=server.createobject("Scripting.Dictionary")
pagemaxlen=1200
tampcontent=rs("内容")
couter=len(tampcontent)
if couter>pagemaxlen then
tampe=couter mod pagemaxlen
if tampe=0 then
endstep=couter/pagemaxlen
else
endstep=cint(couter/pagemaxlen)+1
end if
for i=1 to endstep
Response.Write(i)
content.add "con"&i,mid(tampcontent,0,700)
next
else
content.add "con1",tampcontent
end if


Microsoft VBScript 运行时错误 错误 '800a0005'

无效的过程调用或参数: 'Mid'

/news/detail6.asp,行133
...全文
90 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
alpa 2005-08-16
  • 打赏
  • 举报
回复
谢谢
若白师妹 2005-08-16
  • 打赏
  • 举报
回复
mid(tampcontent,1,700)
alpa 2005-08-16
  • 打赏
  • 举报
回复
以是代码是为实现一条记录的分页显示的效果,但总出错,希望高手帮忙。

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧