引用 ngwjx 的回复内容: 按一下BUTTON3按钮,历史趋势的笔自动加1,比如第...
现在就是有一个问题,这样指令移植修改成这样:放到自己按钮上,就是不能新增,why?
Private Sub Button3_Released()
Dim pen1, pen2, pen3, pen4, pen5, pen6, pen7, pen8 As Pen
Dim Ps As Pens
Set Ps = Trend1.Pens
Set pen1 = Ps.Add("shiyan_bianliang\tank1_liuliang", "励磁11111电压", "V", 0, 70)
Set pen2 = Ps.Add("shiyan_bianliang\tank2_liuliang", "励磁22222电流", "A", 0, 100)
End Sub
按钮名称是Button3 趋势的名称:Trend1
================================================
请高手帮忙一下,,,,,
引用 的回复内容: 就是先将趋势中各条趋势线先删去,然后重新添加趋势线,也...
现在就是我新建一个画面 放置1个趋势 1个按钮,然后通过按钮来添加趋势线,就是添加不上去,
语句如下:
Private Sub Button3_Released()
Dim pen1, pen2, pen3, pen4, pen5, pen6, pen7, pen8 As Pen
Dim Ps As Pens
Set Ps = Trend1.Pens
Set pen1 = Ps.Add("shiyan_bianliang\tank1_liuliang", "励磁11111电压", "V", 0, 70)
Set pen2 = Ps.Add("shiyan_bianliang\tank2_liuliang", "励磁22222电流", "A", 0, 100)
End Sub
请高手指点一下