string mob ;
mob = txtmobile.Text;
like my string is mob=9514786320
how can i split that string into individual numbers.
please help me
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Posted Aug 6, 2013, 4:22 AM
char[] mobarray = mob.ToCharArray();
You will get each character in the mobarray variable then you do for loop to process it.
foreach (char element in mobarray) {
MessageBox.Show(element.ToString());
}
Hope this helps you.