home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Gold 1
/
The_Golden_ROM_Series_-_Shareware_Gold_Volume_1_Number_11_-_SK_89-301_-_1989.iso
/
LIB017
/
LOCATE.HLP
< prev
next >
Wrap
Text File
|
1986-10-01
|
3KB
|
81 lines
LOCATE (FIND)
To locate a string of characters in your text area you must move the
cursor to the Command Line (press Esc if it is not already there),
type the LOCATE command, and then press Enter or F10. If you press
Enter, the string will be located but the cursor will remain in the
text area. If you press F10, the string will be located and the
cursor will be moved to the string in the text area.
You may locate strings either toward the end of the file or toward the
beginning of the file.
You may define your search to be either case sensitive (in which case
only exact matches will be found) or case insensitive (in which case
no distinction will be made between abc and aBC).
You may define your search to distinguish between "the" and "their".
Press the PgDn Key
The general form of the case insensitive locate command is:
/str
This will find "str" anywhere in the file beginning one character
position past the current text position and moving in the direction
toward the end of the file.
To find the same string toward the beginning of the file you would
enter:
-/str
In both of the examples shown, no distinction will be made between
upper and lower case, so if you want to find "the", you will find
"the", "The", "THE", etc.
Press the PgDn Key
The general form of the case sensitive locate command is:
\str
This will find "str" anywhere in the file beginning one character
position past the current text position and moving in the direction
toward the end of the file.
To find the same string toward the beginning of the file you would
enter:
-\str
In both of the examples shown, a distinction will be made between
upper and lower case, so if you want to find "the", you will find
only "the", and not "The", or "THE", etc.
Press the PgDn Key
Differentiating Between "the" and "their"
If you want to find all the "the"s, but do not want to find any
"their"s, "then"s, etc., all you need to do is add another slash at
the end of your locate command (the slash should be in the same
direction as the beginning slash) as shown below:
│ Case │ Case │
│ Insensitive │ Sensitive │
─────────────────────────┼─────────────────┼──────────────────┤
Toward end of file │ /the / │ \the \ │
Toward beginning of file │ -/the / │ -\the \ │
In this case, because a space is included at the end, "their" etc.
will not match. This form has the disadvantage that if you are on the
far right boundary of your line, there will be no space character and
hence you could miss a "the". Experiment with locate on the word
"the" in this file.
Press F4 to Return to the HELP Menu