noerror

FIND without NO-ERROR

Rule "noerror" gives this warning when it finds a FIND statement without NO-ERROR.

example:

FIND FIRST customer NO-LOCK. 

 

the risc:

The program may raise a run-time error when the requested record is not found.

How to resolve this:

Do not assume that the record will be found: add NO-ERROR and IF AVAILABLE logic.