throwing me an error here:
string.Compare(list[], list1[],true); <<<<<<
is causing the error.
string[] list = { "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "v", "z" };
string[] list1 = { "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "v", "z" };
int result = string.Compare(list[], list1[], true);
if (result == 0)
{
Label1.Text += "Two strings are equal";
}
else if (result == 1)
{
Label1.Text += "Test String1 is greater than Test String2";
}
else if (result == -1)
{
Label1.Text += "Test String1 is less than Test String2";
}