lundi 11 septembre 2017

Why I can't insert variable into C# if statement? [on hold]

One day I made a quiz. I made a current question

byte currentQues = 1;

and

if (currentQues == 1) 
{
    label1.Text = String.Format("What's 1+1?");
}

I get the following error:

The name 'currentQues' does not exist in the current context

Aucun commentaire:

Enregistrer un commentaire