Triggers an error.
Error n
n:integer expression
Error n raises an error with the number n (see the list of error messages in Err$).
Dim a%
OpenW # 1
Input "Which error should be shown";a%
Try
Error a%
Catch
Print "This was the error "; Err, Error$
EndCatch
Error n is a short form for Err.Raise n. The usage of the Err object will offer the equivalent way to handle errors under GFA-BASIC 32.
Err Object, Error$, Err$, SysErr
{Created by Sjouke Hamstra; Last updated: 04/10/2014 by James Gaite}