They are few good articles about this subject and even though I think this one could have been better it does show how you can encapsulate, and set/get variables.
Hope this gives you some ideas on how to make your code more reuseable and/or easier to deal with.
Happy Programming!
Wayne Sellars
"Programming, today is a race between software developers, striving to build bigger and better idiot-proof programs, and the Universe, trying to produce bigger and better idiots. So far, Universe 1 - Programmers 0."
Hope this gives you some ideas on how to make your code more reuseable and/or easier to deal with.
Happy Programming!
Wayne Sellars
"Programming, today is a race between software developers, striving to build bigger and better idiot-proof programs, and the Universe, trying to produce bigger and better idiots. So far, Universe 1 - Programmers 0."