9
Answers

string to int problem

Ask a question
Does not work else statement. Please help me.
int countArmyNC = 0;
foreach (DataGridViewRow row in dataGridView1APen.Rows)
{
if (row.Cells[4].Value.ToString() == "‡mbv evwnbx (bb KwgkÛ)")
{
countArmyNC++;
}
else
{
countArmyNC = "";
}
}
 

Answers (9)