GetPenDataArray方法示例
2015-12-15 22:24:37   来源:   评论:0 点击:

以下示例在一个文件中生成包含标准 Chart1 内所有数据的报告。Dim lNumPts As LongDim vVal As VariantDim vPsa As VariantDim vQual As VariantDim vMill As VariantDim toto As ObjectDi

以下示例在一个文件中生成包含标准 Chart1 内所有数据的报告。

Dim lNumPts As Long

Dim vVal As Variant

Dim vPsa As Variant

Dim vQual As Variant

Dim vMill As Variant

Dim toto As Object

Dim Mypath As String

Dim myfile As String

Dim RTN As String


RTN = ""


If Chart1.Pens.Count <> 0 Then

Mypath = System.BasePath

myfile = Mypath & "appChartReport.txt"

RTN = Dir(myfile)

If RTN <> "" Then

'文件不存在

'删除输出文件

Kill myfile

End If

Open myfile For Output As #1

For i = 1 To Chart1.Pens.Count

Chart1.Pens.Item(i).GetPenDataArrayEx lNumPts, vVal, vPsa, vQual, vMill

For j = 0 To (lNumPts - 1)

Value = vVal(j)

Time = vPsa(j)

Quality = vQual(j)

Mill = vMill(j)

Write #1, Chart1.Pens.Item(i).Source;" "; Time;" "; Value; ""

Next j

Next i

Close #1

End If

 


相关热词搜索:

上一篇:GetPenDataArrayEx方法示例
下一篇:GetObjectInfo方法示例

分享到: 收藏
频道总排行
频道本月排行
友情链接1: 沙巴体育 沙巴体育 沙巴体育 沙巴体育 沙巴体育 沙巴体育 滚球体育 滚球体育 滚球体育 滚球体育 IM电竞 IM电竞 IM电竞 IM电竞