see Enumerating Fields in a GROUP or QUEUE - How do you know you've reached the end? - #24 by jslarve