|
-
Aug 28th, 2007, 02:38 PM
#3
Thread Starter
Lively Member
Re: [2005] Null Pointer Exception Help
 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:
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|