I would think in the example above a for each loop could be used but the double vars should be and array rather than 4 different vars. You could also do this with a control array and probably a couple of other ways as well.
That said if it is really only 4 items as simple as in the OP I would not bother as the code there would likely be faster anyway and apparently has already been written.




Reply With Quote