Delete (command): Difference between revisions

From BR Wiki
Jump to navigation Jump to search
 
Line 19: Line 19:


To delete a range of lines you must also use the '''last line number''' parameter. This is the number of the last line you wish to delete.
To delete a range of lines you must also use the '''last line number''' parameter. This is the number of the last line you wish to delete.
The following parameter is useful for enforcing security:
SOURCE allows you to delete source code without deleting the object (executable) code. This lets you hide sections of your program for security purposes. However, once this is done the program cannot be reloaded from source because the source is misssing. So always keep a separate copy of the full original source.


==Technical Considerations==
==Technical Considerations==

Latest revision as of 16:51, 19 November 2024

The Del (DE) command deletes one or more lines from the program currently loaded in memory.

Comments and Examples

At least one line number must follow the DEL command. The system will delete the specified line or, if two line numbers are indicated, it will delete both lines and all lines in between.

The following example deletes lines 30-70:

DEL 30 70

Syntax

DEL <first line number> [<last line number>] [SOURCE]

Defaults

1) Delete only the specified line.

Parameters

DEL requires the 1st line number parameter, which is either the single line number you wish to delete, or the first line number of a range of lines you wish to delete.

To delete a range of lines you must also use the last line number parameter. This is the number of the last line you wish to delete.


The following parameter is useful for enforcing security:

SOURCE allows you to delete source code without deleting the object (executable) code. This lets you hide sections of your program for security purposes. However, once this is done the program cannot be reloaded from source because the source is misssing. So always keep a separate copy of the full original source.

Technical Considerations

To open up all the storage space that deleted lines take up, save the file in source and reload it. This allows you to reclaim approximately 100 bytes of object code for every seven deleted lines.