Please enable JavaScript to view this site.

A-Shell Development History

Navigation: Version 6.1/6.2, builds 1300-1428 > 1329 – 05 January 2013

MX_SETERR

Scroll Prev Top Next More

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)