Try:
string mystring = "1234,34,26,6,1,0"; string[] numbersAsStrings = mystring.Split(','); int[] numberAsInts = new int[numbersAsStrings.Length]; for (int index = 0; index < numbersAsStrings.Length; index++) { numberAsInts[index] = int.Parse(numbersAsStrings[index]); }
Would not expect too much in the way of performance though - there are two expensive operations there, the Split and the Parse.
Regards,
Mark
Mark,
Your a star - cheers!
That does the job perfectly.
This is one big learning curve!
Thanks again for your help.
Regards Gordon.