0x800A000D问题的解决,请教高手

来源:百度知道 编辑:UC知道 时间:2024/05/20 06:14:21
错误类型:
Microsoft VBScript 运行时错误 (0x800A000D)
类型不匹配: 'ubound'
/asp/Display.asp, 第 15 行

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv=refresh content="5;<% =MySelf %>">
<title>Display Page</title>
</head>

<body>
<table border="0" width="600">
<tr><tb>
</table>
<%
a=Application("Talk")
n=ubound(a)
For i=0 to n
if a(i)<>"" then
Response.Write A(i)&"<br>"
End if
Next
%>
</body>
</html>

没看到对Application("Talk")赋值的句子,不是太好判断,应该是这个a不是个数组,所以不能使用ubound
你可以先直接使用Application("Talk") 输出数据,如果没有问题的话,表明Application("Talk") 是数组,给a赋值时发生了错误
声明一下a:
dim a() 再试试