关于定符串数组定义出错
<% dim arr_kh() as string
arr_kh=array("优","良","合格","不合格","A","B","C","D","甲","乙","丙","丁")
%>
arr_kh=array("优","良","合格","不合格","A","B","C","D","甲","乙","丙","丁")
%>
上面代码运行出错会说
Microsoft VBScript 编译器错误 (0x800A0401)
语句未结束
/t3/kb_kaoping.asp, line 175, column 13
dim arr_kh() as string
------------^
语句未结束
/t3/kb_kaoping.asp, line 175, column 13
dim arr_kh() as string
------------^
把红色代码部分删除出错为:
Microsoft VBScript 运行时错误 (0x800A000D)
类型不匹配
/t3/kb_kaoping.asp, 第 176 行
类型不匹配
/t3/kb_kaoping.asp, 第 176 行
再把下面一行赋值也删除就没错了,什么原因?
[[it] 本帖最后由 jxzhu 于 2008-7-2 22:08 编辑 [/it]]