Well, my loop is correct, but it simples stops at the first ocurrence... Can canybody help me??
foreach (string word2 in words)
{
if (wordl[i] == word2)
{
i++;
MessageBox.Show ("1");
}
else if (word2 == null)
{
MessageBox.Show ("2");
}
else if ((word2.Split(' ='))[1] == (0).ToString())
{
MessageBox.Show ("3");
}
else
{
MessageBox.Show ("4");
download[j] = word2;
i++;
j++;
}
}
foreach (string word2 in words)
{
if (wordl[i] == word2)
{
i++;
MessageBox.Show ("1");
}
else if (word2 == null)
{
MessageBox.Show ("2");
}
else if ((word2.Split(' ='))[1] == (0).ToString())
{
MessageBox.Show ("3");
}
else
{
MessageBox.Show ("4");
download[j] = word2;
i++;
j++;
}
}
Comment