"IF AVAILABLE" missing after "FIND NO-ERROR"
What about this: FIND FIRST . IF AVAILABLE ...
or
FIND EXCLUSIVE-LOCK NO-ERROR . IF LOCKED ...
or FIND FIRST ... NO-ERROR. IF AMBIGUOUS ...
None of these statements do what's expected of them - but I see that far too often in code. Have not figured out how to properly build a rule for it though.
Comments
What about this: FIND FIRST
What about this:
FIND FIRST .
IF AVAILABLE ...
or
FIND EXCLUSIVE-LOCK NO-ERROR .
IF LOCKED ...
or
FIND FIRST ... NO-ERROR.
IF AMBIGUOUS ...
None of these statements do what's expected of them - but I see that far too often in code.
Have not figured out how to properly build a rule for it though.