Error Command

Purpose

Triggers an error.

Syntax

Error n

n:integer expression

Description

Error n raises an error with the number n (see the list of error messages in Err$).

Example

Dim a%

OpenW # 1

Input "Which error should be shown";a%

Try

Error a%

Catch

Print "This was the error "; Err, Error$

EndCatch

Remarks

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.

See Also

Err Object, Error$, Err$, SysErr

{Created by Sjouke Hamstra; Last updated: 04/10/2014 by James Gaite}