I'm not sure if you want a string array or an integer array but this should
help:
using System.Text.RegularExpressions;
....
Regex rx = new Regex(", ");
string[] myarray = rx.Split("243, 567, 324, 345"); // creates a string array
containing each number
foreach (string s in myarray)
{
// show the string version of this array item
MessageBox.Show("'" + s + "'");
// Convert it to an integer if you like
int myinteger = Int32.Parse(s);
// add the integer to an array here if you like...
}
ShaneB
"Tome73" <To****@discussions.microsoft.com> wrote in message
news:2D**********************************@microsof t.com...
How would I convert this string to an Array?
"243, 567, 324, 345"
Where each number becomes a new element in that Array.
Thanks