
Store Functions
store:GetSoup(soupName)
soupName from store. If no such soup exists, the method returns nil.
Here are two examples of how you would use it. The first example returns the "Names" soup on the Newton, and the second returns nil because no soup exists:
internal := GetStores()[0];
aSoup := internal:GetSoup("Names");
Print(aSoup);
{_Parent: {#3B5FE9},
_proto: {#4408E91},
tStore: 17853709,
storeObj: {#4403981},
theName: "Names",
cache: [#440B4D9],
cursors: [#440B149]}
aSoup := internal:GetSoup("Dinglehopper");
Print(aSoup);
NIL
An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.
Last modified: 1 DEC 1996