Monday, February 25

RENUM

The RENUM command is used to renumber program lines.
Syntax
RENUM [new number],[old number] [,increment R]
Where,
new numbers : The new starting line number.
old number : The line in the current program where renumbering is to begin.
increment R : Increment between successive line numbers.
  • RENUM can not be used to change the order of program lines.
  • RENUM can not be used to create line numbers greater than 65,529..
  • The line numbers in branding statement (e.g. GOTO, IF.... THEN) are automatically changed without altering the branching scheme.
Example 18
RENUM (press enter key)
It renumbers the entire program. The first new line number will be 10. The lines are incremented by 10.
RENUM 300,50 (press enter key)
It renumbers the entire program. The first line number will be 300 and line will be incremented by 50.
RENUM 100,90,5 (press enter key)
It renumbers ten lines from 90 up and they start with line number 100 and are incremented by 5.


No comments:

Post a Comment