
7-6
Section
Details of BASIC Commands
175
new
Syntax:
NEW
Description:
Command. Clears the program and all variables in the current memory area.
Remarks:
This statement is used to clear a program area before beginning to write a new program. All ports
are closed, all variables are cleared and the current program is deleted.
Programs that are protected with a
PNAME
statement cannot be erased with
NEW
. The program
name must first be cleared using
PNAME
“ ”. Attempts to clear a program protected with
PNAME
will result in a “PROTECTED PROGRAM” error (code 0062).
If memory is write-protected with
PMEM
then
NEW
cannot clear the memory area. The write
protection must first be turned OFF with
PMEM OFF
.
The
NEW
command will work even if the program is password protected using
PWORD
.
Examples:
> 10 REM DUMMY PROGRAM
> 20 A = 5
> LIST
10 REM DUMMY PROGRAM
20 A = 5
> NEW
> LIST
>
See also:
PINF
,
PNAME
,
PMEM
,
PWORD
Содержание C200H-ASC11
Страница 1: ...C200H ASC11 ASC21 ASC31 ASCII Units Operation Manual Revised June 2000...
Страница 2: ...iv...
Страница 4: ...vi...