Q3Set_GetNextElementType
You can use theQ3Set_GetNextElementTypefunction to iterate through the elements in a set.
TQ3Status Q3Set_GetNextElementType ( TQ3SetObject set, TQ3ElementType *type);
set- A set object.
type- On entry, an element type, or
kQ3ElementTypeNoneto get the first element type in the specified set. On exit, the element type that immediately follows the specified element type in the set, orkQ3ElementTypeNoneif there are no more element types.DESCRIPTION
TheQ3Set_GetNextElementTypefunction returns, in thetypeparameter, the type of the element that immediately follows the element having the type specified by thetypeparameter in the set specified by thesetparameter. To get the type of the first element in the set, passkQ3ElementTypeNonein thetypeparameter.Q3Set_GetNextElementTypereturnskQ3ElementTypeNonewhen it has reached the end of the list of elements.