BASICHELP.HLB  —  CAUSE_ERROR
  The CAUSE ERROR statement allows you to generate a  BASIC  run-time  error
  and transfer program control to a BASIC error handler.

  Example

  WHEN ERROR IN
        .
        .
        .
  CAUSE ERROR 11%
        .
        .
        .
  USE
     SELECT ERR
        CASE = 11
          PRINT "END OF FILE"
          CONTINUE
        CASE ELSE
           EXIT HANDLER
     END SELECT
  END WHEN

1  –  Syntax

      CAUSE ERROR err-num
Close Help