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

2-: 25
| | | | existing or new disk |
| | | | file. |
|||||
---------------------------------------------------------------------------------------------
|||||
| RUN | No | Any | Executes current or |
| | | | specified program, |
| | | | beginning at first or |
| | | | specified line. |
|||||
---------------------------------------------------------------------------------------------
|||||
| RUNONLY | Yes | BASIC SAVE | Protects interpreted HP |
| | | | Business BASIC/XL program |
| | | | from listing and |
| | | | modification, but allows |
| | | | execution. |
|||||
---------------------------------------------------------------------------------------------
|||||
| SAVE | No | Any | Stores current program in |
| | | | new disk file. |
|||||
---------------------------------------------------------------------------------------------
The term
fname
appears in the syntax specifications of several file
management commands and statements. For a description of
fname
, see
"File Identification," in chapter 6.
GET Statement
The GET statement retrieves a program from a disk file and can execute
it. The file type greatly affects the result of the GET statement, as
stated in Table 2-6.
Syntax
GET
fname
[,
line_num
][;
execution_line
]
Parameters
fname
The file name of the file containing the program that is
to be retrieved. The file is in the BASIC SAVE, ASCII,
or BASIC DATA format.
line_num
Line number to be assigned to the first retrieved line.
execution_line
Line identifier at which to begin execution subsequent
to completing execution of the GET statement.
See Table 2-6 for more information on all of the above.
Table 2-6. How File Type Affects GET Statement
---------------------------------------------------------------------------------------------
|| | |
| Affected |
fname
Is BASIC SAVE File |
fname
Is ASCII Or BASIC DATA File |
| Parameter |||
|| | |
---------------------------------------------------------------------------------------------
|| | |
|
fname
| Program specified by
fname
| Program specified by
fname
is |
| | replaces current program and its | retrieved line by line. Each line |
| | variables. Common blocks remain | is checked for correct syntax. |
| | only if they are declared by the | Syntactically illegal lines are |
| | new program. | converted to comments. The GET |
| | | stops if it retrieves a command |
| | | (it does not execute the command). |