To protect your input data you can check if the textBox is not empty and, if the input data is a number:
So you avoid to have wrong values in the list.
ok thank you'll do it
it works thanks a lot!