Note: This article was originally published in 2009. Some steps, commands, or software versions may have changed. Check the current General documentation for the latest information.
I am trying to perform an action for each item inside an Enumeration. In other words, I want to be able to use the foreach statement with an enumeration. How do you loop with foreach through an Enum?