
Examples
Finding All Names Matching a String
There are two types of string-matching cursors. The first is text
. It looks through all slots in an entry. If it finds the specified text anywhere, that entry is part of the cursor. A words
search differs in two ways:
- The text must be at the beginning of a word. Any other place within the string is ignored.
- You can have multiple words in the query, but each word must be found in some slot in the entry.
Now, let's look at two code examples that show the difference between a text and a words search. A QuickTime movie of this example is available.
- Text Search
-
- Words Search
-
An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.
Last modified: 1 DEC 1996