Warning
You're browsing the old v2.x documentation. This version is no longer maintained. Click here to go the v3.x documentation.
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | ferr [2019/05/07 09:18] (current) – created neils | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== FERR() ====== | ||
+ | Syntax: | ||
+ | |||
+ | ferr() | ferr!() | ||
+ | |||
+ | The '' | ||
+ | |||
+ | If the return value is zero, no error occurred. Otherwise the value will hold the matching KERNAL error code. | ||
+ | |||
+ | Example: | ||
+ | |||
+ | load " | ||
+ | err = ferr() | ||
+ | if err = 0 then print " | ||
+ | end | ||
+ | load_error: | ||
+ | print "an error occurred" | ||
+ | rem ** more error handling ** | ||
+ | |||
+ | Example error codes: | ||
+ | |||
+ | ^ Code ^ Error ^ | ||
+ | |4|file not found| | ||
+ | |5|device not present| | ||
+ | |8|missing file name| | ||
+ | |9|illegal device number| | ||
+ | |29|load error| | ||
+ | |30|break (user pressed break button)| |