fpt and WinFPT Reference Manual - Command-line Commands
| SimCon Home | Ref Manual Home |
TYPE
Syntax:
TYPE TYPE <expression> [ : <expression> ] TYPE FILE [: <filename> ] [ <expression> [ : <expression> ] ] TYPE SUB-PROGRAM [: <sub_prog_name> ] [ <expression> [ : <expression> ] ]
Function:
The command is used interactively. fpt types a range of lines either:
The TYPE command may move the cursor and may change the current scope to a specified file or sub-program. A range of lines is typed as follows:
Thus, for example:
FPT> TYPE
written without arguments types the text at the current cursor position in the current scope. The lines typed are from cursor-w1 to cursor+w2 where w1 and w2 are the range set by the WINDOW command;
FPT> TYPE <line_number>
Moves the cursor to the specified line number in the current file or sub-program and then types the text of the lines from cursor-w1 to cursor+w1.
FPT> TYPE FILE or FPT> TYPE SUB-PROGRAM
without specifying a line number or range does not move the cursor, but changes the scope of the TYPE command to the current file or sub-program. The text from cursor-w1 to cursor+w1 is typed. When the scope is SUB-PROGRAM the text displayed includes the contents of INCLUDE files.
FPT> TYPE FILE <line_number> or FPT> TYPE SUB-PROGRAM <line_number>
Moves the cursor to the specified line number in the specified file or sub-program scope and types the window around the cursor.
FPT> TYPE <first_line> : <last_line>
Types the specified range of lines in the current scope and moves the cursor to the last line.
FPT> TYPE FILE <sub_prog_name> <first_line> : <last_line> or FPT> TYPE SUB-PROGRAM <sub_prog_name> <first_line> : <last_line>
Sets the scope to the named file or sub-program and types the specified range of lines. The cursor remains at the last line typed.
Where to Use this Command
| Operating system command line | No |
| Configuration file, config.fsp | No |
| Specification (fsp) files, *.fsp | No |
| Interactively, to FPT> prompt | Yes |
| Interactive command files | Yes |
| Embedded in the Fortran code | No |
See Also
Copyright ©1995 to 2025 Software Validation Ltd. All rights reserved.