Doug101:
Woudl this work? Or is there a better way?
Using magic numbers... shame shame
Doug101:
I know this could be done with an array.
the array is the better way, IMHO. any time you are using a global variable to traverse through a for-loop you need to be asking yourself "why."