The
demode function returns the data entry mode and is often used to limit the execution of certain statements to a specific mode. For example, a variable may need initialization when the operator invokes
add or
verify mode, but can be left unaltered for
modify mode.
The function returns an integer but there are also aliased values for the modes. There are three data entry operator modes: