The
inadvance function indicates if an advance is in progress in a data entry application, allowing for the conditional execution of logic based on whether an enumerator has directly entered a field. Advances generally occur when the
advance statement is executed in logic, when resuming from a partial save, or when operators move from one field to another using the case tree.
A common requirement is to execute some logic only when
not advancing. For example, as with the
warning function, you may want to display a "soft check" error message when the operator directly entered the field, not when resuming from a partial save. These two sets of logic are the same:
The function returns a logical value of 1 (
true) if an advance is being evaluted and 0 (
false) otherwise. The function always returns 0 for batch and tabulation applications.