I DONT WANT TO SET MY STRING [] TO HAVE 256.Code: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
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?




Reply With Quote