Originally Posted by ChaosInc
Isn't just passing i doing the same thing, or am I not following this logic correctly?
|
Passing
i requires the function setLoc and an additional separate function for each city button. Saving
i into the frame allows you to just have the one function shared by all the buttons. It is just an efficiency thing, why create 8 functions to accomplish the same thing you can do with just 1.