Basically the Subject says it all. I want to take a DataSet with a single
colum and turn it into an array of strings where each string item in the
array is a copy of what was in each row of the DataSet. I'm using VB.NET
and ADO.NET to do all of this, if this isn't the right newsgroup, my
apologies, please direct me to it.
I'm new to Array's, so thats probably where my problem lies. I know of a way
to get it done, but not the syntax, or if its a good method but it would go
something like this:
Create the DataSet and fill it with my data (I can do this part)
Create a String Array with the same number of spots as the rows in the
For i = 0 to the largest index of the array
add to the array at the spot represented by i, the string conversion of
whats in the dataset at the same spot (or i + 1 if datasets aren't
0-indexed, I don't know)
The above seems like its simple enough, I just don't know the syntax to 1)
create an array of a spacific size, or 2) add items to the array at a given
index. Keep in mind I would like to do this with VB.NET, but if you have an
answer in C# (or anything else .NET) I would appreciate it.
Thank you in advance to any help you can give.