FindErr Predefined Indicator
Obsolete
This indicator is replaced by the Found predefined variable.
Indicators are also obsolete, with the exception of predefined indicators that already exist in the language. Among the reasons for this is the limit of 89 user-defined indicators per program and that indicators are global.
Use the Boolean command to declare Boolean variables instead, or declare properties in classes and objects. You can use the move command to set and retrieve the value of indicators.
Purpose
To indicate the success or failure of the last find.
Syntax
[
finderr
]
command
What It Does
Whenever a find command is executed, the finderr Predefined Indicator is set. If the find is successful, finderr is set to false. If the find is unsuccessful, finderr is set to true. This allows you to program the appropriate action when a find command does not find a record.
find eq parts.code
[finderr] goto update
If a record in the Database File parts is not found with the value of Field code equalling the value in the buffer (Finderr is true), execution is passed to Routine update.
Notes
- Finderr is also set by the string commands
replaceandposto indicate that the substring being searched for was not found. - Finderr is also set by the
opencommand. - The
foundPredefined Indicator is set at the same times as finderr, and to the opposite status (true when finderr is false, and false when finderr is true). - The
constraint_validatecommand sets finderr.