Stop – Remote Processing CAMBASIC User Manual

Page 156

Advertising
background image

Comm ands - 123

STOP

Statement

SYNTAX:

STOP

PURPOSE:

To ter minate pr ogram execution an d retur n to comm and level.

REMARK S:

STOP statements m ay be used a nywher e in a prog ram to term inate executio n. W hen a ST OP is
encountered, the following message is displayed:

< STOP> < Ln nnn>

where nnn is the line number wher e the STOP occur red.

CAM BASIC always returns to com mand level after a STOP is executed. Execution is resumed by
issuing a CONT com mand (see “C ONT Comm and”).

SOUND and multitasking are turned off when STOP is executed. A C ONT m ay cause unexpected
program operation.

RELATED:

C O N T

EXAMPLE:

10 INPUT A,B,C
20 K = 5 : L = 3/2
30 STOP
40 M = CSK + 100 : PRINT M
RUN
? 1,2,3
<STOP> <Ln 30>

ERROR:

none

Advertising