Quote: "Your teacher would probably tell you that that's poor programming practice though, and that you should use functions when you can."
Yep, and i'd agree with him.
Functions are essential... Use them everywhere instead of using gosubs etc. If you need variables in the function, pass them to it. If you need to change variables from within the function, make them arrays ( since array's are global ).
You can replace everything with functions... mabey it means re-writing bits of your code, but it does make codeing
ALOT easier. especially when debugging.
When you progress into higher languages, such as C++ etc, or even to DBPro, you'll find that functions are easier to make ( because of some missing commands, it's a bit harder in DBC ), and thus, more flexable, and preferable over subs and goto's etc.
If you start to use functions now, in the BASIC language, when you get further you'll be thanking me for telling you to use them, for being able to actually make one without having to ask someone...
Hope I Helped...

Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy