#COMPILE EXE "s82_err_func.exe"
' Sample: ERR and ERL functions
FUNCTION PBMAIN() AS LONG
    PRINT "ERR returns last error code"
    PRINT "ERL returns error line number"
    PRINT "ERRCLEAR resets error state"
    FUNCTION = 0
END FUNCTION
