How to implement custom collection class in VBA(3)
How to implement custom collection class in VBA(3)
Attribute 는 사용자 정의 클래스를 컬렉션으로 만들 경우에도 이용한다.즉Attribute NewEnum.VB_UserMemId = -4 makes it the Default Enumeration PropertyAttribute NewEnum.VB_MemberFlags = “40” is to make the Enumerator a Hidden property,이를 이용하여 People클래스가 Person을 돌려주는 컬렉션으로 작동하게 다음과 같은 프러퍼티 프로시저를 추가하면 된다. Public Property Get NewEnum() As IUnknown Attribute NewEnum.VB_UserMemId = -4 Attribute NewEnum.VB_MemberFlags = "40" 'but,…
View On WordPress














