The
noinput statement prevents input of a field during data entry. This command can be coded only in a
preproc or
onfocus procedures.
When the statement is executed in a
preproc, control passes directly from the field's
preproc to the field's
postproc, executing the
onfocus and
killfocus procedures (if present) and performing the item range check, but not permitting input of the field.
When the statement is executed in an
onfocus, control passes directly from the field's
onfocus to the field's
postproc, executing the
killfocus procedure if present and performing the item range check, but not permitting input of the field. The field is on the data entry path even though entry is prevented.
The effect of the
noinput statement is similar, but not identical, to that of a
protected field. If a
noinput statement is used, it is possible to back-tab to the field. It is not possible to back-tab to a field that is protected.