0
Your mistake is because you are trying to convert a nonexistent value to type INT
, with this you get the error;
Run-time exception (line XXX): Input string was not in a correct format.
Stack Trace:
One way to fix this would be to see if it really is an int type value before converting, this can be done as follows.
int number;
bool result = Int32.TryParse(texto10, out number);
See more details here, commented lines is the example of your error.
Post your code as text here and make sure you have detailed all that was necessary about the problem so that people can help you. I suggest starting by doing simple things, as you dominate, you get other more complicated things. Starting with complicated doesn’t learn anything.
– Maniero