Global vs Local Variables
Posted 15 February 2012 - 02:37 PM
Posted 15 February 2012 - 03:15 PM
An alternative would be to pass the values to the sub-script in the script parameter, but if you want to pass multiple values, then you will need a method to manage that. There are plenty of options for this, my preferred method is: http://sixfriedrice....nary-functions/
Posted 16 February 2012 - 12:50 PM
For those reasons, I generally prefer to pass script parameters as Dan suggested. I use this method, which is a little simpler than the 6FR way, which requires a function both to send and receive the params. The one I use only uses a function to receive the params.