set behavior([field-1, ..., field-N]) canenter(notappl|outofrange) on (confirm|noconfirm);
set behavior([field-2, ..., field-N]) canenter(notappl|outofrange) off;
The set behavior canenter statement allows the entry of blanks (notappl) for numeric data items during data entry or to bypass the system 'Out of Range' message during data entry. You may wish to enter blanks when answers are missing from the form. You may wish to bypass the system 'Out of Range' message in order to code your own message.
If no parameters are specified, then the set behavior statement affects all data items from the point where it is executed onward. To limit its scope, it must be turned on and off at appropriate times. It is possible, however, to specify the name of a field, group, record, form, or dictionary to narrow the scope of the behavior to only fields that fall within the specified object.
In operator-controlled applications, notappl defined as a value in the value set for the item usually allows blank to be accepted. In system-controlled applications the set behavior function must be used to allow blanks even if notappl is in the value set.
The keywords confirm or noconfirm must be coded when on is used. Confirm means that a message box is displayed asking if it OK to enter this value. Noconfirm means that no message box is displayed.
set behavior() canenter(notappl) on (noconfirm);
set behavior(AGE,AGE_FIRST_MARRIAGE) canenter(outofrange) on (noconfirm);
set behavior(RELIGION) canenter(notappl) on (noconfirm);