FIND-FAILED event

The FIND-FAILED event occurs when a FIND on a ProDataSet temp-table buffer fails. This can be the result of the FIND statement, the FIND-FIRST() method, or the FIND-UNIQUE() method. FIND-FAILED is NOT fired for FIND NEXT, FIND PREV, or FIND LAST statements, the CAN-FIND function, or the FIND-LAST( ) method.

You can use this event to adjust the contents of the ProDataSet object. The event handler must be able to determine the action to take based on the context of the ProDataSet object, and must RETURN NO-APPLY to indicate the action was successful. For example, when the event occurs, the event handler could retrieve or create a missing row or a set of related rows into the temp-table and RETURN NO-APPLY so the AVM can redo the operation that raised the event and continue processing.