Xojo Developer Conference
Join us from 25th to 27th April 2018 in Denver.

Platforms to show: All Mac Windows Linux Cross-Platform

CalCalendarStoreMBS class

class, Calendar, MBS Leopard Plugin (CalendarStore), class CalCalendarStoreMBS,
Plugin version: 7.7, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: The class for the calendar storage.
Example:
// init
dim s as new CalCalendarStoreMBS

// find calendar by name
dim myCalendar as CalCalendarMBS
dim calendars() as CalCalendarMBS = s.calendars

for each ca as CalCalendarMBS in calendars
if ca.Title = "Private Events" then
myCalendar=ca
exit
end if
next

// Get date range for today
dim Startdate as new date
dim Enddate as new date

Startdate.hour = 0
Startdate.Minute = 0
Startdate.Second = 0

Enddate.hour = 23
Enddate.minute = 59
Enddate.second = 59

// Query events on this calendar
dim events() as CalEventMBS = s.events(Startdate,Enddate, myCalendar)

// Display result
dim lines(-1) as string
for each e as CalEventMBS in events
lines.Append e.Title
next

MsgBox Join(lines,EndOfLine)
Notes:
Requires Mac OS X 10.5 to work.

Calendar saving and modification errors:

CalCalendarNotEditableError= 1025Events and tasks cannot be added to an uneditable calendar
CalDateInvalidError= 1026The start date of an event must be earlier than its end date
CalCalendarNotInRepository= 1027Events' and tasks' calendar property must be a calendar in the user's calendar store
CalCalendarTitleNotUniqueError= 1028Calendar titles must be unique

And the domain for the errors is: CalCalendarStoreErrorDomain

This class has no sub classes.

Some examples which use this class:


The items on this page are in the following plugins: MBS Leopard Plugin.


CalCalendarMBS   -   CalEventMBS




Links
MBS Xojo Plugins