Quote Originally Posted by nmadd
That's definitely not good enough. Step through the code and actually see what sourceArray contains at that point.


My guess is that your Array definition looks something like this and this is causing the exception.
VB.NET Code:
  1. Dim sourceArray() As String
If you are going to dynamically add items to a collection like that, then use a Generic List instead: http://msdn2.microsoft.com/en-us/lib...19(vs.80).aspx

I dim the array as object type. Also, I need to specify col before row.