FIND [ HPTOOLSET XL Reference Manual ] MPE/iX 5.0 Documentation
HPTOOLSET XL Reference Manual
FIND
Locates a specific line of text in the file you are editing or reading.
Syntax
F[IND] [ [ALL] find-string [ |IN| character rangelist] ]
[ line position ]
[level1[#line position] ]
Parameters
Find-String Defines the text you want to locate. By default, only
the first occurrence of the specified string is found.
The find-string must be less than 78 characters long
including delimiters. Strings must be delimited with
single or double quotes or brackets. If the string is
delimited with double quotes, only occurrences
surrounded by one or more spaces or punctuation are
found. If a string is delimited with single quotes, any
occurrence of the string will be found. Strings
delimited by brackets affect both upper and lower case
occurrences.
Character Identifies that portion of the file which you want
Rangelist TOOLSET/XL to search for the find-string. If the
parameter is omitted, the entire file is searched. The
search begins at the first line if you are in command
mode or the top line on the screen if you are in visual
mode.
Line Position Defines the line you want TOOLSET/XL to find.
ALL Provides the list of all occurrences of the find-string
in the character range list.
Level1#Line Is allowed when you are displaying a Pascal listing. It
Position may be necessary to specify the line position (procedure
name) because each level 1 procedure is numbered
beginning with 0. If the procedure name is not
included, the line position will be found in the
procedure last accessed.
Description
If no string or line number is specified, the last find-string that you
entered will be repeated. To view the last find-string, use the SET
ENVIRONMENT command.
Example
(1) >>FIND ALL "ABC" IN 220/260
225 DISPLAY "EXAMPLE: ABCD ABC 1ABC
245 DISPLAY "EXAMPLE2: ABCDEFGHIFKLMNOP
>>
>>FIND 300
300 DISPLAY "THIS IS LINE 300. YES, YOU'VE FOUND IT.".
>>
>>FIND 'CAT' IN 10(30)/20(35)
16 DISPLAY "INSTRUC AABB: ENTER WEEKLY CATALOG SALES (9999.99)"
>>
>>FIND ALL [AABB] IN 10/30
16 DISPLAY "INSTRUC AABB : ENTER WEEKLY CATALOG SALES (9999.99)"
18 DISPLAY "INSTRUC AABB : ENTER AMOUNT OF SALES DOLLARS (9999
>>
>>FIND INPUT_PROC#2
00002 48.000 1 END;
>>
MPE/iX 5.0 Documentation