
Store Functions
store:HasSoup(soupName)
true if store contains a soup named soupName. It returns nil otherwise. Here are two examples, one returning a soup, the other not:
internal := GetStores()[0];
Print(internal:HasSoup("Names"))
TRUE
Print(internal:HasSoup("Dinglehopper"))
NIL
store:IsValid()
true if store is valid, and nil otherwise. A store is invalid if it has been removed. Here is an example:
external:= GetStores()[1]; Print(external:IsValid()) TRUENow, remove the card from the Newton:
Print(external:IsValid()) 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