集合


 
 

 
 

Private Sub CommandButton1_Click()

Dim ctl As Control

For Each ctl In Me.Controls

MsgBox ctl.Name

Next ctl

End Sub

结果


 
 

列表框和集合框也属于集合的范畴。

树状视图也是用集合的范畴。

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注