This instruction is available in Delta Basic and Killrem Basic.
Contents |
KILLREM in Delta Basic
Effect
Deletes all the REM instructions and their remarks in the MSX-BASIC program that is in the computer memory.
Note: Be careful because a line starting with REM can be linked with an instruction such as GOTO or GOSUB. Without at least using RENUM, it will lead to error messages! However, you can avoid that with two tricks:
- The I parameter (see below)
- Delta Basic deletes only the long version of the REM instructions, not the short version " ' ". You can use this 'feature' to exclude lines including GOTO, GOSUB, etc... by putting a " ' " at the beginning of these lines before using KILLREM.
Syntax
KILLREM, I
Parameter
The I parameter is optional. When used, KILLREM will not delete lines starting with REM and linked to instructions such as GOTO or GOSUB.
Related to
Compatibility
KILLREM in Killrem Basic
Effect
Optimises the MSX-BASIC program that is in the computer memory by removing
- all the useless spaces
- all the REM instructions (long and short version) and their remarks
When a line starting with REM is linked with an instruction such as GOTO or GOSUB, it also adapts the lines with these instructions, so there's no risk to get an "Undefined line number" error message, and you don't need to use later RENUM.
Syntax
KILLREM