
7-6
Section
Details of BASIC Commands
208
pmem
Syntax:
PMEM
(
ON
|
OFF
)
Description:
Command. Turns write protection of the current BASIC program area ON or OFF.
Remarks:
The
PMEM
statement write protects the current BASIC program area. If protection is set using
PMEM ON
then it is not possible to change or delete the BASIC program in the current BASIC
program area.
To remove write protection of the BASIC program area, execute
PMEM OFF
. The disabling of
RENUM cannot be set from PMEM.
Examples:
> 10 REM THIS PROGRAM WILL BE PROTECTED
> PMEM ON
> DEL 10
PROTECTED PROGRAM
> PMEM OFF
> DEL 10
> LIST
>
See also:
DEL
,
EDIT
,
NEW
,
PGEN
,
PINF
,
PNAME
.
pname
Syntax:
PNAME
<string expression>
Description:
Command. Assigns a name to the current BASIC program area.
Remarks:
<string expression> is any valid BASIC string with a maximum length of 8 characters. If the
name is longer than 8 characters it will be truncated. Upper and lower case characters are
distinguished in the names.
If a program area has been assigned a name using the
PNAME
statement then it is protected against
the effects of the
NEW
command. In other words it cannot be overwritten. However it may still be
edited using the
EDIT
and the
DEL
commands.
A name assigned to a program area may be removed by assigning an empty string as the name in
the
PNAME
statement. E.g.
PNAME
“ ”
Examples:
> 10 REM THIS PROGRAM HAS A NAME
> PNAME “PROG1”
> PINF
P1
: PROG1 [R/W]
30
BYTES
>
See also:
DEL
,
EDIT
,
NEW
,
PGEN
,
PINF
,
LOAD
.
Содержание C200H-ASC11
Страница 1: ...C200H ASC11 ASC21 ASC31 ASCII Units Operation Manual Revised June 2000...
Страница 2: ...iv...
Страница 4: ...vi...