home *** CD-ROM | disk | FTP | other *** search
- on mouseUp
- go("list")
- set theList to EMPTY
- set DBResult to DBQuery(EMPTY)
- checkFail(DBResult, "Error performing find-all query.")
- set DBResult to DBTop()
- checkFail(DBResult, "Error moving to top of database.")
- if the hilite of member "find all" <> 1 then
- buildQueryExpr()
- set DBResult to DBQuery(field "Query Expression")
- checkFail(DBResult, "Error performing find-all query.")
- end if
- repeat while DBResult <> 3
- if theList <> EMPTY then
- put RETURN after theList
- end if
- put DBGetFieldByName("RESTAURANT") after theList
- put " (" & DBGetFieldByName("STATE") & ")" after theList
- set DBResult to DBSkip(1)
- end repeat
- put theList into field "matchList"
- set DBResult to DBQuery(EMPTY)
- checkFail(DBResult, "Error performing find-all query.")
- set DBResult to DBTop()
- checkFail(DBResult, "Error moving to top of database.")
- end
-