Chapter Contents |
Previous |
Next |
Text Entry: _validate |
Syntax | |
Details | |
Example |
Syntax |
CALLSUPER(_SELF_, '_validate'); |
Details |
_validate is not valid unless you have subclassed a text entry field and overridden the supplied _validate method with your own. _validate is called automatically when a field is modified.
Example |
_validate adds customized validation to the default validation:
VALIDATE: method; /* turn off error flags */ call send(_self_,'_erroroff_'); /* do supplied validation */ call super(_self_,'_validate_'); /* get field value */ call send(_self_,'_get_value_',nval); /* do custom validation */ if (nval>goodval) then call super(_self_,'_erroron_'); endmethod;
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.