Public Function Events遍历() As String
Dim objevent As Property
Dim frm As Form
Set frm = Forms("窗体1")
For Each objevent In frm.Properties
If objevent.Type = 8 Then Debug.Print objevent.Name, objevent.Value
Next
End Function
form 的事件 控件的事件都可以用这种方法来 是不是呢?
for each objevent in Object.properties
其中有几个属性不是事件,name caption 等等,其他都是事件,我也不知道如何进一步只是列举出事件,还需要高人指点,属性列表里的分类是如何实现的呢?
Public Function Events遍历() As String
Dim objevent As Property
Dim frm As Form
Set frm = Forms("窗体1")
For Each objevent In frm.Properties
If objevent.Typ ...
石橡 发表于 2010-2-28 22:21