Turns on a widget's error
state
- The Field function, ErrorOn function, or ErrorOn statement can
also turn on the error attribute. However, only the _errorOn method may be
executed from another Frame, SCL, or Program entry. For example, if you override
the _validate method for a subclass of the TextEntry class, the _validate
method can turn on the error attribute without knowing the field name.
- For extended table widgets, you can enable the error flag for
a particular row of the extended table and for any widget in the extended
table. For more information, refer to _errorOn in the ExtendedTable class.
- If any widget has its error attribute set when an END command
is issued, you must issue the CANCEL command to execute any widget _preterm
methods or the TERM label. The END command does not end the Frame entry.
- If any widget has its error attribute set, the MAIN section will
not execute unless CONTROL ERROR is in effect.
Example
_errorOn turns the error attribute on if the widget's value is greater
than 100:
MYVALID:
method;
if (_value_>100) then
_self_._errorOn();
endmethod;
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.