Typing zero on the beginning of the integer

0
Good morning, good people.   I am working on one very interesting project and I need to type into textbox PIN number. I was able to complete all tasks I was given, except one: I cannot enter 0 at the beginning of the PIN. So, i can enter 12340, 12034 etc... But I cannot enter, for example, 01234. 0 is instantly deleted when I type it in textbox.  I am using integer data type.
asked
1 answers
3

An integer can't start with a 0 it would be 0, and 01 -> becomes 1. You need to use a string and check for valid input (input mask or validation flows)

answered