background image
C H A P T E R 1 9
Built-in Applications and System Data
Dates
19-15
To move a meeting half an hour earlier and give it a different (90 minute)
duration:
GetRoot().calendar:MoveAppointment(
"lunch with Ellen",
StringToDate("6/30/95 12:00pm"),
StringToDate("6/30/95 11:30am"),
90);
MoveOnlyOneAppointment
works just like
MoveAppointment
except that if
it finds a nonexception instance of a repeating meeting or event that fits the criteria,
it moves only that instance.
MoveAppointment
would move all the
nonexceptions in that case.
To move a single occurrence of a repeating meeting:
GetRoot().calendar:MoveOnlyOneAppointment(
"design meeting",
StringToDate("11/13/95 10:30am"),
StringToDate("11/14/95 2:00pm"),
nil);
The
IncrementMonth
function can be especially useful when moving
appointments.
This example moves an appointment two months ahead:
GetRoot().calendar:MoveAppointment(
"lunch with Ellen",
StringToDate("6/30/95 12:00pm"),
IncrementMonth(StringToDate("6/30/95 11:30am"),2),
nil);
Getting and Setting Information for Meetings or Events
19
There are a number of Dates methods that get/set information stored in the
Dates soups:
Set a stop date for a repeating meeting with
SetRepeatingEntryStopDate
.
Set an alarm for a meeting with
SetEntryAlarm.
Get or set the meeting invitees with
GetMeetingInvitees
and
SetMeetingInvitees
.
Get or set a meeting location with
GetMeetingLocation
and
SetMeetingLocation
.
Get or set the meeting notes with
GetMeetingNotes
and
SetMeetingNotes
.
© 2007-2024, o7 studio » при воспроизведении материала сайта ссылка обязательна