Hi guys,
I'm implementing an EditText to be a numeric input, however, I also set a Minimum and Maximum values to it, wich I check in the texthaschanged event.
my problem is shown in the log line below:
This happens when I empty(delete) the value in the edittext.
I have tried to check if the new value is a number with IsNumber(New) but it still errors out.
how can I prevent this? should I opt out for a try/catch block?
I'm implementing an EditText to be a numeric input, however, I also set a Minimum and Maximum values to it, wich I check in the texthaschanged event.
my problem is shown in the log line below:
B4X:
java.lang.NumberFormatException: Invalid double: ""
This happens when I empty(delete) the value in the edittext.
I have tried to check if the new value is a number with IsNumber(New) but it still errors out.
how can I prevent this? should I opt out for a try/catch block?