Examples
cursor:Entry()
returns the symbol 'deleted
.
soup := GetUnionSoup("Names"); curs := soup:Query(nil); e := curs:Entry(); Print(curs:Entry()); { sortOn: ... ... } Print(e); { sortOn: ... ... }Now, remove the entry and execute the
Print
statement again:
EntryRemoveFromSoup(curs:Entry(); Print(curs:Entry()) deleted Print(e); { sortOn: ... ... }The code you write in your application should always consider the fact that
Entry
may return deleted
.
An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.
Last modified: 1 DEC 1996