1 Reply Latest reply on Jul 16, 2009 11:02 AM by Gregory Lafrance

    How to validate the fact that numeric entry cannot be equal to 0?

    JabbyPandaUA Level 3

      Hi all,


      <mx:NumberValidator id="valueValidator"> has minValue property, the most viable solution I could get so far is to specify:


      valueValidator.minValue = 0.5;
      valueValidator.lowerThanMinError = "Value must be greater then 0";


      Or should I go with with an suclassing approach of NumberValidator class?


      Can be tricky  because core comparison routine "validateNumber" is a static function of NumberValidator class.