ListProperties 方法示例

下列示例获得Oval对象Oval1的数目、相应的属性列表及其数据类型。

Dim strMsg As String

Dim pvProperties As Variant

Dim pvDataTypes As Variant

Dim iNumProps As Integer

Oval1.ListProperties pvProperties, pvDataTypes, iNumProps

strMsg = "This object has the following Properties: "

For Each i In pvProperties

   strMsg = strMsg + i + ","

  Next

MsgBox strMsg, vbOKOnly, "Message"

 

您最近了解过 iFIX 吗 ?

查看最新版 iFIX 的所有新功能。

让 iFIX 帮助您提高效率,降低成本。