Remote Processing CAMBASIC User Manual

Page 145

Advertising
background image

Comm ands - 112

RUN

Command

SYNTAX:

R U N [line]

PURPOSE:

T o b eg in th e ex e cu ti on o f a p r og r a m .

REMARK S:

RUN r esets the numeric variables to zero, string variables to null, resets the interrupt pending flag
a n d r u n s t he c ur r e nt pr o g ra m .

RUN resets m emor y reser ved by the last C LEA R statem ent.

RUN causes parts of the program to be compiled. A typical program compiles at 800 lines per
second.

RUN may also b e used at r un time w ith the optional line nu mber . T he effect w ill be to clear a ll
variables and reserved space. Great care should be taken when using RUN with the optional line
number.

NOTE: T h e p r o gr a m m us t b e co m p il e d b y ex e cu ti ng R U N be f or e p er f or m i ng a RU N [line].

RELATED:

L O A D R U N

EXAMPLE:

10 PRINT 7/1
20 PRINT "HELLO"
RUN 20
HELLO

ERROR:

< Syntax> – if line not found when using RUN [line]. (N onsense line number will be displayed.)

Advertising