Im new to coding and C# so sorry if this is a stupid question.
I need to redefine a variable according to a text box (user input) and I am getting an error
int age;
private void Age_TextChanged(object sender, EventArgs e)
{
//saves age in years
age = Age_TextChanged.int;
}
It is erroring on line "age = Age_TextChanged.int;" on the int bit
The error is as followed
Identifier expected; 'int' is a keyword
First off, what does this mean, secondly, how do I fix it?
Thanks in addvanced
Aucun commentaire:
Enregistrer un commentaire