[RESOLVED] String Array (2D) dynamic
If one was to work with an 1-D of string []
Code:
string[] strLine1;
strLine1 = Get(); // this returns a list if strings
...
..
private string[] Get()
{
List<string> List = new List<string>();
// do something
return List.ToArray();
}
Question is this :
What happens if we were to hold multiple of strLines ?
what does a 2D array of string looks like?
// can something liek this be done in c#?
Code:
string[,] strLine1;
while(until something is not happening)
{
strLine1[i++] = Get(blala blaa);
}
Re: String Array (2D) dynamic
Check out this link, maybe it will help a little. In particular the part at the bottom.
http://msdn.microsoft.com/en-us/libr...53(VS.71).aspx
Re: String Array (2D) dynamic
Code:
ArrayList TotalList = new ArrayList();
string [] list;
foreach (string sheet in sheets)
{
list = FetchXLS(blaaa blaaa);
TotalList.Add(list);
}
ArrayList did the job. Thanks