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:

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