beautypg.com

Apple Newton Programmer’s Newton 2.0 (for Newton 2.0) User Manual

Page 505

background image

C H A P T E R 1 1

Data Storage and Retrieval

Summary of Data Storage

11-73

soupOrUsoup

:GetSize()

uSoup

:GetSoupList()

soup

:GetStore()

GetUnionSoupAlways(

soupNameString

)

soup

:MakeKey(

string

,

indexPath

)

IsSoupEntry(

object

)

soup

:IsValid()

soup

:RemoveAllEntriesXmit(

changeSym

)

soup

:RemoveFromStoreXmit(

changeSym

)

soupOrUsoup

:RemoveIndexXmit(

indexPath

,

changeSym

)

soup

:SetInfoXmit(

slotSymbol

,

value

,

changeSym

)

soup

:SetName(

soupNameString

)

Cursors

11

These functions and methods work with the cursor object returned by the

Query

method.

Cursor Validity

cursor

:Status()

Retrieving Entries and Manipulating the Cursor

cursor

:Entry()

cursor

:Next()

cursor

:Prev()

cursor

:Move(

n

)

cursor

:EntryKey()

cursor

:GoToKey(

key

)

cursor

:GoTo(

entry

)

cursor

:Reset()

cursor

:ResetToEnd()

cursor

:WhichEnd()

Additional Functions and Methods

MapCursor(

cursor

,

function

)

cursor

:CountEntries()

cursor

:Clone()

Entries

11

These functions allow you to work with individual soup entries returned by the
cursor object.

EntryChangeXmit(

entry

,

changeSym

)

EntryCopyXmit(

entry

,

newSoup

,

changeSym

)

EntryFlushXmit(

entry

,

changeSym

)