| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 499 人关注过本帖
标题:[求助]关于变量的一个问题
取消只看楼主 加入收藏
zhouye1919
Rank: 1
等 级:新手上路
帖 子:8
专家分:0
注 册:2005-12-5
收藏
 问题点数:0 回复次数:1 
[求助]关于变量的一个问题

各位大哥大姐,请帮忙看看
我的源码是这样的
<!--#include file=head.asp -->
<!--#include file=conn.asp -->
<%
function talbe()
pyear=request.Form("pyear")
pmonth=request.Form("pmonth")
sql="select * from alldata where pyear="&pyear&" and pmonth="&pmonth&" order by month_day desc"
set rs=server.CreateObject("ADODB.RecordSet")
rs.Open sql,conn,1,1

if rs.eof then
rs.Close
set rs=nothing
response.Write("对不起,您要查询的数据不存在,请重新<a href=show_view.asp>输入</a>")
else
Dim cou
cou=rs.RecordCount
co=rs.fields.Count
Dim info1(co)
For x=0 To co-1
info1(x)=rs("total_number")
rs.MoveNext
'info(x,2)=rs("total_money")
Next

'response.Write"<html xmlns:v='urn:schemas-microsoft-com:vml' xmlns:o='urn:schemas-microsoft-com:office:office'>"
response.Write"<v:group id='group1' style='width:600pt;height:400pt' coordsize='5000,3000'>"
response.Write"<v:line from='200,100' to='200,2800' style='z-index:8;position:absolute' strokeweight='1pt'>"
response.Write"<v:stroke startarrow='classic'/>"
response.Write"</v:line>"
response.Write"<v:polyline filled='false' points='"
For y=0 To cou
Dim c
c=y*400
response.Write info(y)&nbsp;&c&","
Next
"200 2800,1210 1400,2400 1220,3500 1700,4111 2600"
response.Write"style='z-index:8;position:absolute' />"
'<v:line from="1210,1400" to="1210,2800" style="z-index:8;position:absolute" strokeweight="1pt"/>
'<v:line from="2400,1220" to="2400,2800" style="z-index:8;position:absolute" strokeweight="1pt"/>
'<v:line from="3500,1700" to="3500,2800" style="z-index:8;position:absolute" strokeweight="1pt">
'<v:textbox inset='0px,0px,0px,0px'><table cellspacing='3' cellpadding='0' width='100%' height='100%'><tr><td valign='top'>3000</td></tr></table></v:textbox>
'</v:line>
'<v:line from="4111,2600" to="4111,2800" style="z-index:8;position:absolute" strokeweight="1pt">
'<v:textbox inset='0px,0px,0px,0px'><table cellspacing='3' cellpadding='0' width='100%' height='100%'><tr><td valign=""align='center'>3333</td></tr></table></v:textbox>
'</v:line>
response.Write"<v:line from='200,2800' to='5000,2800' style='z-index:8;position:absolute' strokeweight='1pt'/>"
response.Write"<v:stroke endarrow='classic'/>"
response.Write"</v:line>"
response.Write"<v:rect style='width:4900px;height:3000px' coordsize='21600,21600' fillcolor='white' strokecolor='black' />"
response.Write"</group> "
end if
rs.Close
set rs=nothing
end function
%>
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<!--[if !mso]>
<style>
v\:* { behavior: url(#default#VML) }
o\:* { behavior: url(#default#VML) }
.shape { behavior: url(#default#VML) }
</style>
<![endif]-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<style>
TD { FONT-SIZE: 9pt}
</style></head>
<body topmargin=5 leftmargin=0 scroll=AUTO>
<%call table()%>
</body>
</html>
他的报错是这样的
错误类型:
Miceosoft VBScript编译器错误(0x800A0402)
缺少整形常数
/trade/show_success.asp.line 19,column 10
Dim info1(co)
------------ ^
我不太明白,谢谢!

搜索更多相关主题的帖子: 变量 
2006-04-22 23:19
zhouye1919
Rank: 1
等 级:新手上路
帖 子:8
专家分:0
注 册:2005-12-5
收藏
得分:0 
哦,谢谢,
2006-04-23 00:37
快速回复:[求助]关于变量的一个问题
数据加载中...
 
   



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

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