Hey,
Can anybody explain how I need to create different arrays.
The date is entered in a TextBox and because I need to split out different determinators I first get the data (a bit shortend out);
string[] StringInput = TxtBox_Input.Text.Split(new char[] { ',' , ';', '-', '\r', ' ', '.', ':', '/'});
int StringLength = StringInput.Length;
ConvertStringInputToInt(StringInput, StringLength);
After I convert the string to an int;
private uint[] ConvertStringInputToInt(string[] StringInput, int StringMaxLenght)
{
int[] IntInput = new uint[StringMaxLenght];
for (int i = 0; i < StringMaxLenght; i++)
uint.TryParse(StringInput[i], out IntInput[i]);
return IntInput;
}
But now I'm blocked. How can I let the system create for each time a different array? which afterwards I can first show all separate, and after merge?
I know it seems a silly thing, but need to do it for school to figure out how an array works, should be nice if some expert can help me.
thx,
K.
Replies
Know the answer? Post it — somebody with the same question will find it here.