fpt and WinFPT Reference Manual - Command-line Commands
| SimCon Home | Ref Manual Home |
FIND
Syntax:
FIND ERRORS FIND ERROR [:] <integer> FIND [SYMBOL] [:] <symbol> FIND ASSIGNMENTS [TO] [:] <symbol> FIND WRITES [TO] [:] <symbol>
Note on the Syntax: The keyword SYMBOL may be abbreviated to S. Care must therefore be taken when the optional keyword SYMBOL is omitted. The command f s will be interpreted as FIND SYMBOL and fpt will prompt for the symbol name. It will not immediately seek the symbol S.
Function:
The FIND command is used interactively to locate objects in the code. It finds the first occurrence of the target in the current search scope. The cursor is moved to the target, and the lines at and around the target are displayed. fpt displays w1 lines above the line which contains the target and w2 lines below it, where w1 and w2 are the values set by the WINDOW command. The cursor is indicated by the symbol >> printed to the right of the line number if line numbering is turned on (See NUMBER LINES and LINE NUMBERING).
Scope
The search scope is set by a SET SCOPE, TYPE or SEARCH command. It is a sub-program, a single file, or all files.
Target
The target is an error report or a specified symbol.
The keyword FIND may be abbreviated to F and the keyword SYMBOL may be abbreviated or ommitted. For example:
FPT> FIND SYMBOL ANOVA%SUMSQ
may be written:
FPT> f ANOVA%SUMSQ
The NEXT command is used to find subsequent occurrences of the target.
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 2024 Software Validation Ltd. All rights reserved.