|
-
Aug 16th, 2001, 02:38 PM
#1
Thread Starter
Addicted Member
Implementing support for "For...Each"
Hi,
I don't remember what do I need to do so my custom collection supports the For...Each navigation.
Can anyone point me in the right direction?
Thanks
-
Aug 16th, 2001, 08:19 PM
#2
Try making a collection class with the Class Builder AddIn thing, it takes care of all that for you.
-
Aug 16th, 2001, 08:50 PM
#3
Thread Starter
Addicted Member
thanks... that option never crossed my mind (obviously)
-
Aug 23rd, 2001, 09:07 PM
#4
New Member
For Each
The other way is as follows
' Class code
private mcolThings as new collection
public sub NewEnum as IUnkown
set newenum = mcolThings.[NewEnum]
end sub
in the procedure properties, set the newenum id to -4
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|