HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)

4-: 19
assigned to
num_var
is the value converted immediately
prior to the syntax error. An HP Business BASIC/XL
error number is not generated for this condition. The
string is deblanked before it is converted.
num_var
A numeric variable.
line_ref
A line label or line number that is in the same
procedure as the CONVERT statement. Specification of a
line_ref
supersedes the error handling action specified
in an ON ERROR statement.
Examples
10 A$="123"
20 CONVERT A$ TO A !A is now 123, and its type is the default numeric.
99 END
10 A$="123abc"
20 CONVERT A$ TO A !A is now 123, and its type is the default numeric.
99 END
COPY ALL OUTPUT TO
The COPY ALL OUTPUT TO statement copies interpreter and program output on
the file or device specified by
dev_spec
. If the
dev_spec
is a disk file
that already exists, additional information is appended to the file.
Syntax
COPY ALL OUTPUT [TO]
dev_spec
Parameters
dev_spec
A device specification statement. It includes a
destination device and can also have the MARGIN and
FIELD keywords. If the device is a disk file, you can
also specify a FILESIZE. See chapter 6 for more
information.
Examples
The examples below show some of the different ways to combine parameters
in the COPY ALL OUTPUT TO statement.
100 COPY ALL OUTPUT TO "MYFILE"
110 COPY ALL OUTPUT TO "LISTFILE", MARGIN 20
120 COPY ALL OUTPUT TO Filename$, FILESIZE Num_records
130 COPY ALL OUTPUT TO Filename$, FILESIZE Num_records, MARGIN Z, FIELD N+1
140 COPY ALL OUTPUT TO A$+B$, FIELD 10
150 COPY ALL OUTPUT TO DISPLAY, FIELD X+2, MARGIN 10
160 COPY ALL OUTPUT TO NULL
170 COPY ALL OUTPUT TO PRINTER
The SEND OUTPUT TO statement overrides the COPY ALL OUTPUT TO statement.
If a program contains both statements, then PRINT statement output is
displayed only on the device that the SEND OUTPUT TO statement specifies.
Between the initiation of report writer output with the DETAIL LINE,
TRIGGER BREAK, TRIGGER PAGE BREAK or END REPORT statement and termination
of the report, execution of a COPY ALL OUTPUT TO statement generates an
error.
COPYFILE
The COPYFILE statement copies one file to another file or to a device
referenced by a file operation. It does not affect the original file.
Syntax
[ {,} ]
COPYFILE
fname1
[TO
fname2
] [,
lock_word
{;} STATUS[=]
num_var
]