I have a problem trying to trap an error for a negative
number. I have one NumericStepper that is subtracted by another
Numeric Stepper. The problem is that I don't want the user to
provide a negative number. How do I go about checking for a
negative number and throwing a message to the user that a negative
result is not allowed.
I've tried the numberValidator to no avail.
Any help would be most appreciated.
This is what I've tried.
The Steppers are set to zero. It's the result of the two that
I need to check. The Stepper1 is subtracted by Stepper2 and the
results are displayed in LabelAns. Stepper1 is set to 0-30 and
Stepper2 is set to 0-20.