spartan.monkey
Member
- Joined
- Oct 25, 2014
- Messages
- 12
- Programming Experience
- Beginner
i have this school registration software.
the problem is that i want to update the class automatically with reference to age for example
if age is 2 class is begginer
if age is 3 class is montessori
if age is 4 class is 1
if age is 5 class is 2
if age is 6 class is 3
if age is 7 class is 4 and so on.
i want to use for loop
but if any solution is there please explain.
Thanks
the problem is that i want to update the class automatically with reference to age for example
if age is 2 class is begginer
if age is 3 class is montessori
if age is 4 class is 1
if age is 5 class is 2
if age is 6 class is 3
if age is 7 class is 4 and so on.
i want to use for loop
C#:
//AUTO CLASS UPDATE
if (agee.Text.ToString().CompareTo("12") == 0 )
{
}
but if any solution is there please explain.
Thanks