i have this code in visual studio 2005.
string skud = izleme.Substring(6, 2);
if (skud = "10")
{
Label6.Text = "250 GR"
}
else
{
Label6.Text = "500 GR"
}
izleme is a string 7 char like 1100410 or 1100413
i want to take last 2 char 10 or 13 .
there is an error :
Cannot implicitly convert type 'string' to 'bool'
please help me.
string skud = izleme.Substring(6, 2);
if (skud = "10")
{
Label6.Text = "250 GR"
}
else
{
Label6.Text = "500 GR"
}
izleme is a string 7 char like 1100410 or 1100413
i want to take last 2 char 10 or 13 .
there is an error :
Cannot implicitly convert type 'string' to 'bool'
please help me.