Looping over a COM Collection or Structure
<CFLOOP COLLECTION="collection_name"
ITEM="item_name">
</CFLOOP>
The CFLOOP COLLECTION attribute allows you to loop over a structure or a COM/DCOM collection object:
- A COM/DCOM collection object is a set of similar items referenced as a group rather than individually. For example, the group of open documents in an application is a type of collection.
- A structure can contain either a related set of items or be used as an associative array. Looping is particularly useful when using a structure as an associative array.