![]() |
![]() |
11 |
![]() |
Chapter 2: The Editor
If you choose she Whole Words option instead of Everywhere in the dialogue box, only whole words will
be found. This means that
she specified string will only be found if it
appears in the program
delimited by characters other than letters (including Greek and accented letters), numbers, and the underline character. Note that this does not restrict the rangeofcharacters which maybe included ma search string; itsimpty defines thecharacters which delimita word.
Forenample, if a line of the program read
If the Whole Words option was selected, Search would not find this line if the search string was fred, but it would find it if the search suing wan frederick or froderi ck$. This is because in the firstcane frederick is delimited bya space characterbefore and a $ behind, and in the second case frederi ck$ is delimited by a space in front and a full stop behind. Since the space character, thedollar, and thefullstopareallchamcters which can be used to delimit whole words, both frederick and frederi ck$ can be found by Search withthe Whole Words option.
If the editor finds an occurrence of the string bul not the specific occurreuce you need, you can repeal the search (starting from the end of the string found by the first search) by selecting Sea rch again from the Edit menu.
Note that, since therepeated search starts from theendof the suing foundby the firstsearch, the two strings cannol overtap. For example, searching for issi will stop at the word Mississippi. If you then choose Search again, the editor will not find the second occurrence of issi in Mi ssi ss ippi , because the search starts after the second letter i inthe word.
Replacing
Replacing is similar to search except that when it fiuds the string the editor will substilute another. When you chmse Replace... you will heprompted forthe two strings.
Replace... includes the option of Manual or Automatic replacement. Autunatic replaces all the occurrences of the first sIting with the second withoul further ado. Manual slops aleach occurrenceand asks you whether you wish to replace or not.
Replace..., like Search again, continues its search from the end of the previous string.
|
BASIC 2 Plus: User Guide & Quick Refereuce
11
|
![]() |
![]() |
11 |
![]() |