Aray String
How to compare the strings by charrecter by charrecter??? in VS 2003 using C#
I diclared the string as array type.I need to compare each letters of the Textbox string.
can anybody help me with the coding????
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.
Kirtan PatelPosted Aug 29, 2009, 7:02 AM
protected void Button1_Click(object sender, EventArgs e)
{
//Convert TextBox Text To Character Array
char[] chararray = TextBox1.Text.ToCharArray();
foreach (char c in chararray)
{
//Do What ever you want to do with character
}
}