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

下列示例获得 对象Oval1的数目和相应的方法列表。Dim strMsg As String Dim pvMethods As VariantDim iNumMethods As IntegerOval1 ListMethods pvMethods, iNumMethodsstrMsg = "This object h

下列示例获得 对象Oval1的数目和相应的方法列表。

Dim strMsg As String

Dim pvMethods As Variant

Dim iNumMethods As Integer

Oval1.ListMethods pvMethods, iNumMethods

strMsg = "This object has the following Methods: "

For Each i In pvMethods

   strMsg = strMsg + i + ","

  Next

MsgBox strMsg, vbOKOnly, "Message"

 


相关热词搜索:

上一篇:ListProperties方法示例
下一篇:ListEvents方法示例

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