This is the best place to discuss about the various Oric operating systems like Sedoric, Randos, FT-Dos, and others, as well as serious software, utilities, word processors, disassemblers, etc... that runs on oric computers.
10 ERR SET
20 LOAD "SILLY.MEM",V
30 ERR OFF
40 PRINT ST,ED
When run, and silly.mem does not exist on the disk the program returns to the ready prompt and doesn't show any values for ST or ED. Why?
When run, and silly.mem does exist the load parameters are displayed followed by ST and ED that line 40 prints.
I'm using Euphoric in DosBox with Sedoric 3.0 on Oric Atmos ROM V1.1
Never used this but this is what Sedoric à Nu says about it:
"when ERR SET is on and an error occurs, the program jumps to the line specified by ERRGOTO, if it exists, or it stops, generating a Sedoric or User error message. So a ERRGOTO is required each time you use ERR SET".
Oh and BTW, each time you use ERR SET or ERR OFF, the ERRGOTO line number is erased and the program is set back to stop and print an error message. That's why ERRGOTO has to be defined after each ERR SET.
Once your ERRGOTO commands have been executed, you can resume the execution where it had crashed (RESUME), or right after the command that crashed (RESUME NEXT).
Using Sedoric's SEARCH command seems to work and doesn't generate an error if or if not found but the status must be held in a Sedoric environment variable. Any idea which one?
Dbug linked me to English Sedoric manual but it doesn't seem to hold the environment variable info.
Search sets the EF variable at value 1 if at least 1 file exists, and 0 if none.
So do not test it with TRUE or FALSE !
(once again, thanks to André's Sedoric à Nu )
BTW this is in the French version of the manual too, page 98 with (all ?) other environment variables. Would the translation be incomplete ?