|
-
Feb 16th, 2012, 02:35 PM
#12
Thread Starter
New Member
Re: Writing back to a delimited text file
After all of that, I was still getting a RankException. The change you recommended to me in the AddButton though clued me into something. For some reason I was getting a two-dimensional array from my original dictionary entries, but my AddButton was adding a one-dimensional array to it. I had to figure out why my dictionary was becoming two-dimensional in the first place.
It ended up being that I was declaring my dictionary as (Of String, Array), instead of (Of String, String()). The Array declaration for the dictionary value field was doubling up the dimensions. Essentially, I was making an array, then throwing it into the Array dictionary value field, making it an array within an array, or in other words a two-dimensional array.
I went back and changed the dictionary to (Of String, String()), and all 3 of my 'KeyValuePair(Of String, Array)' to (Of String, String()). That did it.
So after the changes you recommended, and the changes just mentioned, it now works as intended. Thank you!
P.S. Is there a Thank You button or something similar in these forums?
Edit: I see the 'Rate this post' and 'Add to reputation' links.
Last edited by bdbc78; Feb 16th, 2012 at 02:48 PM.
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
|