1,453
社区成员
发帖
与我相关
我的任务
分享
Dim MyData(35, 3) As Double 问题1: 35是试验数据,我想要的是ADODC的数据集,有几条数据X轴就显示几条
如果DIM mydata(adodc1.recoadset,3) 就报错必须要常量,但我的就是变量啊
For W1 = 0 To Label39‘label39就是数据集-1’
MyData(W1, 0) = Val(MSHFlexGrid1.TextMatrix(W1 + 1, 21))
Next W1
'
For w2 = 0 To Label39
MyData(w2, 1) = Label40 '上
Next w2
For w3 = 0 To Label39
MyData(w3, 2) = Label41 '下
Next w3
For w4 = 0 To Label39
MyData(w4, 3) = Label34 '中
Next w4
With MSChart2
.Plot.SeriesCollection(1).Pen.Width = 25
.Plot.SeriesCollection(2).Pen.Width = 20
.Plot.SeriesCollection(3).Pen.Width = 20
.Plot.SeriesCollection(4).Pen.Width = 20
’.Plot.SeriesCollection(5).Pen.Width = 20 问题2:第5条线不能设置粗细了,属性里就也只到了C4,
.Plot.SeriesCollection(1).SeriesMarker.Auto = False
.Plot.SeriesCollection(1).DataPoints.Item(-1).Marker.Style = VtMarkerStyleFilledSquare '显示标识 方块
.Plot.SeriesCollection(1).DataPoints.Item(-1).Marker.Size = 100 '显示标记的大小
.Plot.Axis(VtChAxisIdY).ValueScale.Maximum = Label40 + 10 '设置Y轴最大值
.Plot.Axis(VtChAxisIdY).ValueScale.Minimum = Label41 - 10 '设置Y轴最小值
.ChartType = VtChChartType2dLine ' 设置图形为线图
.ChartData = MyData ' 数据
End With


给你说了要“数值”,你还写个“label5”!
label5 是个控件,能直接代表数值吗! 对你很无语!!!!



