beautypg.com

Remote Processing CAMBASIC User Manual

Page 186

background image

Error Messages - 1

The following list of error messages are r eturned by CAM BASIC. These indicate clearly, what is wrong, within the
context of a program, and should be of great use in program debugging.

NUM

M E S S AG E

E X P L A NA T I O N

0

<

Unknown err or

>

Error is undefined

1

<

NEXT w/o FOR

>

A NEXT statement is encountered without a matching FOR.

2

<

Syntax

>

A line is encountered that includes an incorrect sequence of characters

(misspelled keyword, incor rect punctuation, etc.).

3

<

R E T U R N w / o G O S U B

>

A RET URN statement is encountere d for which ther e is no previous,

unmatch ed GO SUB statem ent.

4

<

Out of DATA

>

A READ statement is executed when there are no more DATA

s ta t em e n ts w it h u n r ea d da t a r e m a in in g in th e pr o g ra m .

5

<

Illegal argument

>

A parame ter that is out of range is passed to a numeric or string function.

This error m ay also occur as a result of:

a.

A negative or unr easonably lar ge subscr ipt.

b.

A negative or zero argum ent with the LOG function.

c.

A negative argument to SQR.

d.

A negative mantissa w ith a non-integer exponent.

e.

An improper argument to MID$, LEFT $, RIGH T$, P EEK,
POKE, TAB, SPC or ON...GOTO.

f.

Other function arguments which exceed the limits of the function.

6

<

Overflow

>

The result of a calculation is too large to be represented in CA MBASIC

single– precision format. If underflow occurs, execution continues
without an error.

7

<

Out of memory

>

A program is too large, or has too many loops, subroutines, and/or

variables; or has expressions that are too complicated to evaluate.

8

<

Line/label not found

>

A nonexistent line number is referenced in an EDIT, DELETE,

REN UM , etc . state ment.

9

<

Subscript out of range

>

An array elem ent is referenced, either w ith a subscript that is outside the

dimensions of the arr ay, or with the wrong number of subscripts.

10

<

Array already dimensioned

>

Two D IM statem ents are g iven for the same ar ray; or a D IM statem ent is

given for an array after the default dimension of 11 has been established
for that array.

11

<

Division by zero

>

A division by zero is encountered in an expression; or, the value zero has

been raised to a negative power. In the first case, the result is machine
infinity (with the a ppropr iate sign); in the second c ase, the result is
positive machine infinity.