Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

CalRecurrenceRuleMBS 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 recurrence rules.
Example:
// start a connection to the calendar database
dim s as new CalCalendarStoreMBS

// needed for the error details
dim e as NSErrorMBS

dim r as CalRecurrenceRuleMBS = CalRecurrenceRuleMBS.initYearlyRecurrence(1, nil) // repeat every year without end

dim a as new CalAlarmMBS // add alarm
a.action = a.CalAlarmActionDisplay
a.relativeTrigger = -3600*24 // 24 Hours before

// create a new calendar
dim c as new CalEventMBS

dim d as new date(2011, 04, 20) // the date

// set properties
dim calendars() as CalCalendarMBS = s.calendars
c.Title="Test Birthday"
c.startDate=d
c.recurrenceRule = r
c.calendar=calendars(1) // add to second calendar
c.addAlarm(a)
c.endDate = d
c.isAllDay = true

// save event
call s.saveEvent(c,s.CalSpanAllEvents, e)
if e<>nil then
MsgBox e.localizedDescription
else
MsgBox "New event was created."
end if
Notes:
Requires Mac OS X 10.5 to work.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

Feedback, Comments & Corrections

This class has no sub classes.

Some properties using for this class:


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


CalRecurrenceEndMBS   -   CalTaskMBS




Links
MBS FileMaker Plugins