FUNCTION ErrorHandler(nError,cMethod,nLine) LOCAL lcErrorMsg,lcCodeLineMsg *Some code here IF nError = 13 THEN &&Table not opened *Code that sends a message and then stops the execution *of the calling method ENDIF ENDFUNCSo, in this particular case, I want my function to stop whenever I can't open a table (because everything else is going to fail if the table is not opened properly).