Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using if else problem?

Status
Not open for further replies.

baran121

Programmer
Sep 8, 2005
337
TR
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.
 
Fix that error and that should fix it
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top