|Do you know where your variables are?|
What would be really interesting (to me at least; but I think widely), would be to post the original code with sufficient context/data to allow it to be run, and solicit as many people as possible to post their reworking of it.
You could then pick'n'mix for your own solution; and the rest of us could compare our solutions with those of others.
It would be a rare opportunity for everyone, regardless of their expertise, to learn from others.
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In reply to Re^3: How to deal with old OO code that mixes instance methods with class methods