Y
y
Hi,
I have an array with 2 elements and I would like to keep
the elements but redimension the array so that I can add
another value.
How do I do this.
I have tried this but, i think I have screwy logic.
Thanks
intRedimArray = arr_Selected.Length;
object tmp_arr = arr_Selected.Clone();
arr_Selected (string [])tmp_arr;
arr_Selected = new string[intRedimArray];
arr_Selected[intArrayCounter-1] = strToAdd;
tmp_arr= null;
the program will keep showing 1.
MessageBox.Show(arr_Selected.Length.ToString());
Thanks for your help,
y
I have an array with 2 elements and I would like to keep
the elements but redimension the array so that I can add
another value.
How do I do this.
I have tried this but, i think I have screwy logic.
Thanks
intRedimArray = arr_Selected.Length;
object tmp_arr = arr_Selected.Clone();
arr_Selected (string [])tmp_arr;
arr_Selected = new string[intRedimArray];
arr_Selected[intArrayCounter-1] = strToAdd;
tmp_arr= null;
the program will keep showing 1.
MessageBox.Show(arr_Selected.Length.ToString());
Thanks for your help,
y