FindFn
dataDef:FindFn(entry, what, offset)
Called by Newton Works when a global (Newton-wide) Find is performed, and a search using the function
FindStringInFrame
finds nothing in a Newton Works soup entry.
DISCUSSION
- entry
- The soup entry to search.
- what
- The string to search for.
- offset
- An integer specifying an offset, in characters. Begin searching in entry starting at this offset.
- return value
- Return non-
nil
from this method if the string what is found in the entry anywhere after offset. Returnnil
if the string is not found.
This method should search the soup entry for the what string.
Note that if the string is in the soup entry in plain NewtonScript string form (if
FindStringInFrame
returnstrue
) *FindFn
will not be called because Newton Works has already identified the entry as matching the Find criteria. The*FindFn
method is called only whenFindStringInFrame
finds nothing, to let you do any custom processing that might be needed in order to do a string search.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help