beautypg.com

Cont – Remote Processing CAMBASIC User Manual

Page 57

background image

Comm ands - 24

CONT

Command

SYNTAX:

C O N T

PURPOSE:

To resume pr ogram execution after a break.

REMARK S:

The C ONT comm and may be used to r esume p rogr am exe cution after a break from the serial po rt,
or an END or STOP statement has been executed. Execution continues at the point where the break
happened.

CONT is invalid if the program has been edited during the break or if any statements have been
executed in the immediate mode.

WARNING:

All tasks and sound output are canceled when a program stops. CONT inuing when

using multitasking is not recommended.

EXAMPLE:

In the following example, we cr eate a long loop.

10 A = 1
20 PRINT A ;
30 INC A:GOTO 20
RUN
1 2 3 4 5 6 7 8

( A t t hi s p o in t w e in te r r up t t he lo o p b y pr e ss in g E SC )

CONT
9 10 11 12 13 14 15 16 17 18 19 20

ERROR:

CON T– if executed af ter a pr ogram edit