string someArgs = "Yogi Bear"; // a string is a char[]
foreach (char letter in someArgs)
{
// do something with the letter(witch is now of type char but you need an int
}
see how foreach works
Or you could use the ToCharArray(), like
//Now the array contains every char in the value string char[] array = value.ToCharArray();
This post has been edited by Michael26: 01 December 2012 - 10:39 AM

New Topic/Question
Reply




MultiQuote





|