當前位置:成語大全網 - 新華字典 - VBA的結構體裏面可以再嵌套結構體嗎?

VBA的結構體裏面可以再嵌套結構體嗎?

能啊,例如:

Type mytype

MyName As String

MyBirthDate As Date

MySex As Integer

End Type

Type MyType2

MyName As String

MyBirthDate As Date

MySex As Integer

mytype As mytype '引用mytype作為成員

End Type