Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共2 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:为何不能生成图表

1楼
小狐 发表于:2008/11/30 17:42:00

公式为:

dim a as winform.chart
dim b as winform.chartseries
dim c as list (of string)
c = datatables("订单").getuniquevalues("","产品")
a = forms("窗口2").controls("chart1")
a.serieslist.clear()
b = a.serieslist.add()
b.length = c.count
for  i as integer = 0 to c.count-1
 b.x(i) = i
 b.y(i) = datatables("订单").compute("sum(金额)","[产品] = '"& c(i) &"' ")
 a.axisx.setvaluelabel(i,c(i))
next
 a.AxisX.AnnoWithLabels = True

哪里错了????

2楼
狐狸爸爸 发表于:2008/12/1 8:17:00
兄弟,你得先打开这个窗口2,这段代码才会有效。
我用你的代码测试,没有任何问题的。
共2 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .01563 s, 2 queries.