示例:GetValueBarPosition 和 GetSpecifiedValue 方法

Private Sub CalculateRunRate_Click() Dim dtBar As Date Dim nBarMS As Long Dim fSum As Double Dim objPen As RSTrend.Pen fSum = 0 'Calculate rate based on position of value bar If Trend1.GetValueBarPosition(dtBar, nBarMS) Then For Each objPen In Trend1.Pens fSum = fSum + objPen.GetSpecifiedValue(dtBar, nBarMS) Next txtRunRate = fSum * (24# * 60# * 60#) _ / DateDiff("s", Date, dtBar) End If End Sub
提供反馈
对本文档有问题或反馈吗? 请在这里提交您的反馈
Normal