1. 论坛系统升级为Xenforo,欢迎大家测试!
    排除公告

一个ASP调试错误,求助大侠!!!

本帖由 dfhs852006-01-06 发布。版面名称:后端开发

  1. dfhs85

    dfhs85 New Member

    注册:
    2006-01-06
    帖子:
    2
    赞:
    0
    脚本:
    <%
    Dim MyArray
    MyArray=(0,1,2,3,4)
    For I =Lbound(MyArray) to Ubound(MyArray)
    Response.Write MyArray(I)&"<br>"
    Next
    %>

    IE错误提示:
    Microsoft VBScript 编译器错误 错误 '800a03ee'

    缺少 ')'


    /abd/exam.asp,行 3

    MyArray=(0,1,2,3,4)
    ----------^

    求助各位大侠,到底哪里出问题了
     
  2. trualy

    trualy New Member

    注册:
    2006-01-07
    帖子:
    2
    赞:
    0
    Dim MyArray()
    MyArray()=(0,1,2,3,4)
     
  3. Tameway

    Tameway New Member

    注册:
    2005-09-06
    帖子:
    1,286
    赞:
    8
    定义数组的格式是

    dim name() = (a, b, c...)
     
  4. dfhs85

    dfhs85 New Member

    注册:
    2006-01-06
    帖子:
    2
    赞:
    0
    还是没有用

    还是没有用