EDIT Subcommands-RENUM, REPEAT
3. All VSBASIC statements that use statement numbers for operands are
updated to reflect the new line numbers. The VSBASIC statements
with line number operands are:
4. CLOSE CLOSEFILE DELETE EXIT GET GOSUB GOTO IF ON OPEN OPENFILE PRINT USING PUT If any error occurs during the
terminates the RENUM operation and
unchanged.
READFILE
REREADFILE RESET RESETFILE
REWRITEFILE WRITEFILE RENUM operation, the editor
the file being edited remains When verification is on, the message EDIT: indicates that the RENUM subcommand completed processing.
REPEAT Use the REPEAT subcommand to execute the immediately following OVERLAY subcommand (or an X or Y subcommand assigned to invoke OVERLAY) for the
specified number of lines or to the end of the file. The format of the REPEAT subcommand is:
r------
i r , , REPEAT Inl I 1*' I III , L .J L- n indicates the number of times to repeat the OVERLAY request that immediately follows, beginning with the current line. An asterisk
(*) indicates that the request is to be repeated until the end of
the file is reached. If neither n nor * is specified, then only
one line is handled. The last line processed becomes the new
current line.
1. If the next subcommand issued after the REPEAT subcommand is not an OVERLAY subcommand
6
the REPEAT subcommand is ignored= 2. For an example of a REPEAT subcommand followed by an OVERLAY subcommand, see the discussion of the OVERLAY subcommand.
None. Section 3. EDIT Subcommands and Macros 243
EDIT Subcommands-REPLACE, RESTORE REPLACE Use the REPLACE subcommand to replace the current line with a specified
line or to delete the current line and enter input Bode. The format of
the REPLACE subcommand is: r , I Replace L- I [line] I. line specifies an input line that is to replace the current line. If a
line is specified, then the editor puts it into the file in place
of the current line. If no line is specified, the editor deletes
the current line and enters input mode (see Usage Note 2 for
exception) 1. If the LINEMODE subcommand with a LEFT or RIGHT operand is in
effect, then issuing the REPLACE subcommand specifying a line is
not valid. If the REPLACE subcommand is used without any operands
when LINEMODE is set to LEFT or RIGHT, you are prompted for the
next available line number; the first data line you enter replaces
the current line number.
2. If you use the REPLACE subcommand with no operands to enter input
mode, and the next line you enter is a null line, then the current
line is not deleted, and you are returned to edit mode.
3. To stack a REPLACE subcommand in order to enter input mode from a
fixed-length you should use the &STACK control statement.
When verification is on and you issue the REPLACE subcommand with no
data line, the message: INPUT: indicates that your virtual machine is in input mode. RESTORE Use the RESTORE subcommand to restore the settings of EDIT subcommands
to their values when the PRESERVE subcommand was last issued or to their
default values if a PRESERVE subcommand has not been issued. The format
of the RESTORE subcommand is: r- I REStor-e L- 244 VM/37Q eMS Command and Macro Reference
-----, I
Previous Page Next Page