Oliver,
Thanks for the help. The "Use of Real" problem is gone now, but I am a bit confused about not using a DIM statement. I need the values to be a array and instead of declaring in the parameter list a large empty array, I thought I could just use the DIM statement to create a dynamic one. Playing around with this some more, the code works fine if I create a large empty array in the parameter list. I guess I will just go with this.
Thanks again.