Answer the question
In order to leave comments, you need to log in
What is "!="?
I don't understand this line:
if (Row_Text_Box.Text != "" && Col_Text_Box.Text != "")
!=
?
Answer the question
In order to leave comments, you need to log in
!= is an inequality. In this case, checking that Row_Text_Box.Text and Col_Text_Box.Text are not equal to the empty string
In C-like languages !=
, this is an inequality test. Other languages use <>
.
This code will crash with an error if you enter not numbers, but letters in the text fields.
Instead of Convert.ToInt32, you need to use int.TryParse
The answer is easily found by a search engine
What does != mean in C#
Inequality. For example:
int Num = 3;
int Num2 = 3;
if(Num != Num2) {
Console.WriteLine("Переменная Num не равна переменной Num2"); //1
}else {
Console.WriteLine("Переменная Num равна переменной Num2"); //2
}
Console.ReadLine(); // Результат будет 2
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question