・When the PRGEDIT command is executed, the editor wrapping mode is forcibly turned off.
・In the following cases, the PRGEDIT state is canceled and PRGEDIT must be executed again.
・When the contents of the target slot are changed by LOAD command or NEW command, etc.
・When the program is run
・When the wrapping mode is turned on in the editor
・Program slot to operate: 0-5
・An error will occur if the currently executing slot is specified.
・The operation target line (the current line)
・If not specified, the first line becomes the current line.
・If -1 is specified for the line number, the last line becomes the current line.
PRGEDIT 0
・When used in function format, it returns the line number.
・An error occurs if source code operation is not started with PRGEDIT first.
・Program slot in operation
・Source code line number in operation
PRGEDIT OUT SLOT,LINE LINE=PRGEDIT()
・When it's 1, PRGGET is called and the current line is acquired and automatically moved down one line. As a result, the source code can be acquired line by line by simply calling PRGGET.
・When it's 0, the current line is not moved automatically. The current line must be moved with PRGSEEK.
・If not specified, 1 is specified.
・The source string of the current line (empty string if out of range)
A$=PRGGET$()
1 | Move Down One Line |
-1 | Move Up One Line |
・If not specified, it's 1.
・When used in the function format, 1 is returned if it can be moved, and 0 is returned if it is not possible to move forward from the first or last line.
R=PRGSEEK(1)
・If PRGGET$ returns an empty string, add a line.
The string that replaces the current line
PRGSET "'Comment"
・Insert multiple lines of string including line feed code CHR$(10).
・The source string to insert
1 | Insert After Current Line |
0 | Insert Before Current Line |
・If not specified, it's 0.
PRGINS "PRINT "+CHR$(34)+"HELLO"+CHR$(34)
Number of lines to delete
・When a negative value is entered, all of them are deleted.
・If not specified, it's 1.
PRGDEL
Program slot for acquiring the number of rows: 0-5
・If not specified, the currently executing program slot is specified.
0 | Number of Lines (default) |
1 | Number of Characters |
2 | Number of Empty Characters |
Value according to type
A=PRGSIZE(0)
・The specified file name by the LOAD/SAVE command is returned.
Program slot for acquiring file name: 0-5
・If not specified, the currently executing program slot is specified.
File name of the program loaded in the specified program slot
PRINT PRGNAME$(0)