Examples

Printing All the Names in the Names Soup

Notice that in each example we get the union soup and create a cursor. We then get an entry and use a while loop to iterate through each one. We print the value of the e.sortOn slot, and last of all move the cursor to the next entry. A QuickTime movie of this example is available.

In Unsorted Order
In Sorted Order

An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.

Last modified: 1 DEC 1996