Sharp OZ-707 Operation Manual - Page 96

Io Io

Page 96 highlights

NAME o FORMAT: NAME "E:old filename" AS "new filename" IEtm:R I Abbreviation: NA. See Also: PURPOSE: Renames files on the RAM disk E. REMARKS: The NAME command renames the disk file "old filename" as "new filename" on the RAM disk. An error occurs if "old filename" does not exist, or a file with "new filename" already exists. An error occurs if "old filename" is protected with the UP" (write-protection) function. An error occurs if "old filename" is open. The extension can be omitted if it is blank. EXAMPLE: NAME "E:OLDNAM" AS "E:NEWNAM" Names file OLDNAM on the RAM disk E as NEWNAM. NEW o FORMAT: NEW IENTER I Abbreviation: See Also: CLEAR, PASS PURPOSE: Clears existing programs and data. REMARKS: The NEW command clears all programs and data that are currently in memory. (Programs with passwords cannot be cleared.) 180 j ON ERROR GOTO p FORMAT: 1 ON ERROR GOTO {line number} . *Iabel 2. ON ERROR GOTO 0 Abbreviation: O. ERR. G. See Also: ERN, ERL, RESUME PURPOSE: Sets up an error trapping routine. REMARKS: When the error trap function is enabled, control is transferred to the error routine if an error is detected. An error message is not displayed. Within an error routine, control can be branched depending on the value of ERN and ERL. The routine is terminated by the RESUME command. Format 2 clears declaration of error trapping. Declaration of error trapping is also cleared in any of the following cases: (1) RUN command is executed. (2) The power is turned off. (3) A program is loaded. The program stops executing if an error occurs within an error routine. 181

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128

NAME
FORMAT:
NAME "E:old filename"
AS
"new filename"
I
Etm:R
I
Abbreviation:
NA.
See
Also:
PURPOSE:
Renames files
on
the RAM disk
E.
REMARKS:
The NAME command renames the disk file "old filename" as "new
filename" on the
RAM
disk.
An
error occurs if "old filename" does not exist, or a file with "new
filename" already exists. An error occurs if "old filename" is protected
with the
UP"
(write-protection) function.
An
error occurs
if
"old filename"
is open.
The extension can
be
omitted if it
is
blank.
EXAMPLE:
NAME "E:OLDNAM"
AS
"E:NEWNAM"
Names file OLDNAM on the RAM disk E as NEWNAM.
NEW
FORMAT:
NEW
I
ENTER
I
Abbreviation:
See
Also:
CLEAR, PASS
PURPOSE:
Clears existing programs and data.
REMARKS:
The NEW command clears all programs and data that are currently in
memory. (Programs with passwords cannot
be
cleared.)
180
o
o
j
ON ERROR GOTO
FORMAT:
1 ON ERROR GOTO {line number}
.
*Iabel
2.
ON ERROR GOTO
0
Abbreviation:
O.
ERR.
G.
See
Also:
ERN, ERL, RESUME
PURPOSE:
Sets up an error trapping routine.
REMARKS:
When the error trap function is enabled, control is transferred to the
error routine
if
an error
is
detected. An error message is not displayed.
Within
an
error routine, control can be branched depending on the
value of ERN and ERL. The routine is terminated by the RESUME
command.
Format 2 clears declaration of error trapping. Declaration of error
trapping
is
also cleared
in
any of the following cases:
(1)
RUN
command is executed.
(2) The power is turned off.
(3)
A program is loaded.
The program stops executing if an error occurs within an error routine.
181
p