I have a problem! I want to assign ONLY a number to a variable, in realtime, without an error being generated, as I'm typing.
- the TextChanged event(s) of an textedit box, needs to be able to accept anything you can throw at it from the android numeric keyboard without causing an error due to assigning the input to a float or double-type variable as you're typing a number.
- The input MIGHT start with a minus sign. But! That's not a number when you start anything with a minus sign. So there will be an error, right? I tried this with a try/catch and tried with isnumeric. Can't figure this out. Also, a "null" or EMPTY value, can't cause an error either. And neither should the beginning of what you type, cause and error starting your input with a decimal point, a minus AND decimal point, or any combination of thereof. What to do?