title: Lotusscript: Use variable as array name so can apply function in a loop
body: <p>I am not sure if I phrased the question well. Here is what I want to accomplish.</p>
  
  <p>My agent builds a series of 25 or so arrays. Arr1() and Arr(2) etc. They are dynamic as I do not know how many items they will contain.</p>
  
  <p>The agent must apply several functions to each array. One simple one is a bubble sort. </p>
  
  <p>So I have 25 lines of code like this:</p>
  
  <pre><code>Call bub_sort(Arr1)
  Call bub_sort(Arr2)
  etc.
  </code></pre>
  
  <p>For each function I have 25 lines of code like that (or similar code).</p>
  
  <p>Over time I will add additional arrays and possibly different functions.</p>
  
  <p>Seems like it would be better to Load a List or Array of the array names, and then iterate over that for the functions, like so</p>
  
  <pre><code>'Sort Arrays
  ForAll lst In lstGrpNme
      Call bub_sort(lst)
  End Forall 
  </code></pre>
  
  <p>However, the code of course doesn't work as I am passing the string, not an array.</p>
  
  <p>How can I get around this? </p>
  
  <p>I fear that I will have to make a class?</p>