Error – Remote Processing CAMBASIC User Manual

Page 78

Advertising
background image

Comm ands - 45

ERROR

System Statement

SYNTAX:

ERR n

PURPOSE:

To simulate the occurrence of a run time error.

REMARK S:

This statement is usually used to test err or trapping system s using the ERR and /or E RL functions.

If n is not an assigned erro r num ber, an unknow n err or m essage w ill result.

See the Err or M essages Chapter for a list of error codes and messag es.

RELATED:

E R L , E R R fu n ct io n , O N E RR , R E S U M E

EXAMPLE:

ERR 2

<ERROR 2> <Syntax>

ERROR:

< Data negative> – for n
< Data > 255> – for n

Advertising