Platforms to show: All Mac Windows Linux Cross-Platform

CalCalendarStoreMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Calendar MBS MacFrameworks Plugin 7.7 Yes No No Yes, macOS only No
Function: The class for the calendar storage.
// 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
end if

// 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 =,Enddate, myCalendar)

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

MsgBox Join(lines,EndOfLine)
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

Feedback, Comments & Corrections

This class has no sub classes.

Some examples which use this class:

Blog Entries

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

CalCalendarMBS   -   CalEventMBS

The biggest plugin in space...

MBS FileMaker tutorial videos