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

下列示例获得 对象Oval1的数目、相应的属性列表及其数据类型。Dim strMsg As StringDim pvProperties As VariantDim pvDataTypes As VariantDim iNumProps As IntegerOval1 ListProperties pvPrope

下列示例获得 对象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"

 


相关热词搜索:

上一篇:ListWindowsGroupNames方法示例
下一篇:ListMethods方法示例

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