Saeed
March 23rd, 2009, 11:55 PM
string[] str_a = new string[]; // COMPLIER DOES NOT LIKE THIS
string[] str_a = new string[256]; // COMPLIER wants THIS
int col=0;
while ( BLAA BLAA BLAA))
{
str_a[col++] = get(...);
}
return str_a; // but the size is of the array is 256 not value of col
I DONT WANT TO SET MY STRING [] TO HAVE 256.
one WAY I READ WAS TO USE LIST<LIST<string>> but i still try not to do that.
Final question is this :
can teh size of the array be altered from 256 to what the value of COL is somehow before being returned back?
string[] str_a = new string[256]; // COMPLIER wants THIS
int col=0;
while ( BLAA BLAA BLAA))
{
str_a[col++] = get(...);
}
return str_a; // but the size is of the array is 256 not value of col
I DONT WANT TO SET MY STRING [] TO HAVE 256.
one WAY I READ WAS TO USE LIST<LIST<string>> but i still try not to do that.
Final question is this :
can teh size of the array be altered from 256 to what the value of COL is somehow before being returned back?