You need not pass variables as parameters as in your example. Variables are available as per the rules described in the manual. This can very easily be tested with just a few lines of code. Take note of DIM and GLOBAL as well.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.