如何定义数组?
我想实现统计几个公司每个月的销量折线图,total(12,3)中12代表十二个月,如何使这个数组为动态数组,比如现在是:
..............
7月,total(7,3)
8月,total(8,3)
9月,total(9,3)
.............
程序:
<%dim total(12,3)
for i=1 to month(date)
total(i,0)=i& "月 "
next
total(0,1)= "#FF0000,1.5,1,2,公司1 " '参数1线条的颜色,参数2线条的宽度,参数3线条的类型,参数4转折点的类型,参数5线条名称
total(1,1)=200
total(2,1)=1200
total(3,1)=900
total(4,1)=600
total(5,1)=1222
total(6,1)=413
total(7,1)=800
total(0,2)= "#0000FF,1,2,3,公司2 "
total(1,2)=400
total(2,2)=500
total(3,2)=1040
total(4,2)=1600
total(5,2)=522
total(6,2)=813
total(7,2)=980
total(0,3)= "#004D00,1,1,3,公司3 "
total(1,3)=900
total(2,3)=890
total(3,3)=1240
total(4,3)=1300
total(5,3)=722
total(6,3)=833
total(7,3)=1280
%>
------解决方案--------------------dim total(12,3)
没错啊,就这样啊!