Please enable JavaScript to view this site.

A-Shell Development History

New MIAMEX function MX_SETERR (182) triggers a BASIC error. Syntax:

xcall MIAMEX, MX_SETERR, errnum {,chan}

It may be useful for testing/debugging error handling routines, as well as for using the error trapping mechanism as a way of passing coded signals (i.e. virtual error codes) from within an arbitrarily nested function/procedure up to the main error trap.

Parameters

errnum  (Integer)  [in]

the BASIC error to trigger; sets err(0)

chan  (Integer)  [in]

channel number; sets err(2)