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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend3days leftRegister
Posted Aug 6, 2013, 12:22 AM EDT
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.