You can use the CountCollectionTags function to determine the total number of distinct collection tags contained in the items of a collection. You can use the GetIndexedCollectionTag function to examine the value of one of the distinct collection tags contained in a collection.
Every collection has a list of distinct collection tags contained in that collection.
The GetIndexedCollectionTag function allows you to step through this list of distinct collection tags, as shown in Listing 5-18 . Then, it uses the GetIndexedCollectionTag function to step through each of the distinct collection tags in the collection. With each collection tag, the sample code uses the GetTaggedCollectionItem function to retrieve the variable-length data from each item with the tag. In this manner, this sample code retrieves the data from every item in the collection. Inc. All rights reserved.