FocFetch

FocFetch contains the return code of the most recently issued NEXT or MATCH command. If the NEXT or MATCH command returned data, FocFetch is set to zero; otherwise, it is set to a non-zero value.

It is recommended that you test FocFetch in place of issuing the ON NEXT, ON NONEXT, ON MATCH, and ON NOMATCH commands: FocFetch accomplishes the same thing more efficiently.

For example:

FOR ALL NEXT CustID INTO CustOrderStack;
IF FocFetch NE 0 THEN ReadFailed();

FocFetch is local to a procedure. If you wish a given FocFetch value to be available to another procedure, you must pass it to that procedure as an argument.


WebFOCUS