Accessing Collections of Sub-objects

Tables have multiple columns, classes have multiple attributes and operations. To iterate over such collections of associated objects, use a macro, such as .foreach_item.

Example:

%Name% contains the following widgets:
.foreach_item(Widgets)
	\n\t%Name% (%Color% %Shape%)
.next

Output:

MyObject contains the following widgets:
	Widget1 (Red Triangle)
	Widget1 (Yellow Square)
	Widget1 (Green Circle)

For more information see Collection members.