Renum – Remote Processing CAMBASIC User Manual

Page 138

Advertising
background image

Comm ands - 105

RENUM

Command

SYNTAX:

R E N UM [newline] [,increment] [,oldline]

PURPOSE:

To renum ber prog ram lines.

REMARK S:

newline is the first line number to be used in the new sequence. The default is 10.

increment is the increment to be used in the new sequence. The default is 10.

oldline is the line in the current progr am where renumber ing is to begin. The default is the first line
o f th e pr o g ra m .

RENU M also changes all line number references to reflect the new line number s. RE NUM may not
be used to change the order of program lines. Nor can it be used to create line numbers greater than
65,529.

RELATED:

AUTO

EXAMPLE:

RENUM

Renumbers the entire progr am. The first new line number will be 10. Lines will increment by 10.

RENUM 300,50

Renumbers the entire progr am. The first new line number will be 300. Lines will increment by 50.

RENUM 1000,1,20

Renumbers the lines from 20 up so they start with line number 1000 and increm ent by 1.

ERROR:

< Line not found> – newline or oldline does not exist
< Subscript out of range> – if attempt is made to RENUM past line 65,529

Advertising