Apple Newton Utilities User's Guide Page 687

  • Download
  • Add to my manuals
  • Print
  • Page
    / 942
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 686
CHAPTER 19
Built-in Applications and System Data
Dates 19-13
To delete a single instance of the repeating event created in “Adding Meetings
or Events”:
GetRoot().calendar:DeleteEvent ("George's birthday",
StringToDate("2/22/95"), true);
To delete the whole series of George’s birthdays by passing in a meeting frame
for a repeating meeting:
GetRoot().calendar:DeleteEvent
( GetRoot().calendar:FindAppointment
("George's birthday",
nil,
StringToDate("2/22/95"),
'RepeatingEvent,
nil)
[0], //FindAppointment returns an array
nil, // again, these two params. are ignored
nil);
The preferred way to delete the repeating event series is by calling
DeleteRepeatingEntry:
GetRoot().calendar:DeleteRepeatingEntry
("George's birthday", StringToDate("2/22/95"), true);
Finding Meetings or Events 19
The Dates application provides two methods to nd meetings or events in one of
the Dates soups:
FindAppointment and FindExactlyOneAppointment.
The
FindAppointment method takes the following parameters:
FindAppointment(mtgText, findWords, dateRange, type,
maxNumberToFind). The FindExactlyOneAppointment method shares the
same rst four parameters, but (not surprisingly) does not use a
maxNumberToFind
parameter. The
FindExactlyOneAppointment method functions exactly like
FindAppointment, except that if more than one meeting or event fits the search
criteria, an exception (error –48418) is thrown.
The following examples show how to find meetings with these two methods:
To nd all meetings in the month of June 1995 with the word “lunch” in the title
or the notes:
GetRoot().calendar:FindAppointment
(nil,
'["lunch"],
Page view 686
1 2 ... 682 683 684 685 686 687 688 689 690 691 692 ... 941 942

Comments to this Manuals

No comments