Description of Methods and Functions

Cursor Functions

There are some important functions that you will use to set up your soup queries and to control the movement of your cursors. First, let us look at how you set up your query with and without an index.


soup:Query(querySpecFrame)


Calling Query creates a cursor for soup based on the criteria specified in querySpecFrame (a nil value for querySpecFrame specifies using the soup's default index). The qualified query entries are then iterated over using the cursor. As we said before, both queries and soups are dynamic. Adding or deleting entries from the union soup can change the number and order of entries in the query.

Creating a Query Specification Frame
Tag Specification Frame
Moving Cursors

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

Last modified: 1 DEC 1996