Commodore 128 Programmer's Reference Manual page 57

Hide thumbs Also See for 128:
Table of Contents

Advertisement

n
BASIC BUILDING BLOCKS AND BASIC 7.0 ENCYCLOPEDIA
47
n
n
HEADER
Format a diskette
HEADER "diskname" [91 i.d.] [,Ddrive number]
^
[<ON|,>Udevice number]
} |
Before a new disk can be used for the first time, it must be formatted with the HEADER
command. The HEADER command can also be used to erase a previously formatted
disk, which can then be reused.
j |
When you enter a HEADER command in direct mode, the prompt ARE YOU
SURE? appears. In program mode, the prompt does not appear.
The HEADER command is analogous to the BASIC 2.0 command:
j"
OPEN l,8,15,"N0:diskname,i.d."
EXAMPLES:
I
HEADER "MYDISK",I23, DO
This headers "MYDISK" using i.d. 23
on drive 0, (default) device number 8.
p
HEADER "RECS", 145, Dl ON U9
This headers "RECS" using i.d. 45, on
j
drive 1, device number 9.
HEADER "C128 PROGRAMS", DO
This is a quick header on drive 0, device
"
number 8, assuming the disk in the drive
j j
was already formatted. The old i.d. is
used.
H
HEADER (A$),I76,D0,U9
This example headers the diskette with
j |
the name specified by the variable A$,
and the i.d. 76 on drive 0, device num-
n
HELP
j
Highlight the line where the error occurred
HELP
p
The HELP command is used after an error has been reported in a program. When HELP
j
is typed in 40-column format, the line where the error occurs is listed, with the portion
containing the error displayed in reverse field. In 80-column format, the portion of the
p
line where the error occurs is underlined.
i!
IF / THEN / ELSE
j
Evaluate a conditional expression and execute portions of a program depending on the
'
outcome of the expression

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents