Thread: Subs parameters
View Single Post
  #7 (permalink)  
Old 01-21-2010, 09:04 AM
mjcoon mjcoon is offline
Basic4ppc Expert
 
Join Date: May 2008
Location: Berkshire, UK
Posts: 810
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by merli View Post
Nice workaround, but you still have to have arrays global declared. Erel, is it planned to have posibility declare arrays locally?
How would that work, except by having arrays (or other variables) passed by reference so that the names are local to the Sub but the data that is manipulated is external to the Sub? (Which is what we are promised for a future version.)

Using globals is so clunky because to operate on varied data each has to be loaded into the global(s) before calling the Sub and then "unloaded" afterwards. This doesn't help with the readability of the code.

Mike.
Reply With Quote