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

2-: 13
After editing the line, press RETURN. The MODIFY command displays the
modified line for further modification. When you are finished with the
modifications, type RETURN after the modified line is displayed. HP
Business BASIC/XL modifies the line and, if it is correct, incorporates
the modified line into the program. Then the next line in the
line_range_list
is displayed for modification. If the modified line
has a syntax error, the error message associated with that error is dis-
played and you return to the MODIFY mode for that line.
If you have difficulty modifying the line and wish to start with the
version of the line that you had when you began, type "//" or CONTROL Y.
Table 2-4. MODIFY Subcommands
---------------------------------------------------------------------------------------------
|| | |
| Subcommand | Modification | Usage |
|| | |
---------------------------------------------------------------------------------------------
|| | |
| D (or d) | Delete one character or a series | Type D under each character to be |
| | of characters. | deleted. |
|| | |
---------------------------------------------------------------------------------------------
|| | |
| D (or d) | Delete a series of characters. | Type D under the first and last |
| | | characters to be deleted. |
|| | |
---------------------------------------------------------------------------------------------
|| | |
| D (or d)E (or e) | Delete from one character to the | Type D under the first character |
| | end of the line. | to be deleted and E (or e) |
| | | immediately after D. |
|| | |
---------------------------------------------------------------------------------------------
|| | |
| D(or d)& | Delete from one character to the | Type D under the first character |
| | continuation character (&). | to be deleted and & immediately |
| | | after D. |
|| | |
---------------------------------------------------------------------------------------------
|| | |
| I (or i) | Insert characters. | Type I under the character before |
| | | which characters are to be |
| | | inserted; after I, type the |
| | | characters to be inserted. |
|| | |
---------------------------------------------------------------------------------------------
|| | |
| R (or r) | Replace characters. | Type R under the first character |
| | | of the string to be replaced. |
| | | After R, type the
n
characters |
| | | that will replace the first |
| | | character and the next
n
-1 |
| | | characters. |
|| | |
---------------------------------------------------------------------------------------------
|| | |
| // or CONTROL Y | Cancel modifications on current | Type one of the following under |
| | line. | the line: // or CONTROL Y. |
|| | |
---------------------------------------------------------------------------------------------
|| | |
| Any other | Replace characters. | Type the characters that will |
| character | | replace those in the preceding |
| | | line. |
|| | |
---------------------------------------------------------------------------------------------