Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Events.Item.SetCalendar

Sets the calendar for the event.

Component Version macOS Windows Linux Server iOS SDK
Events 6.2 ✅ Yes ❌ No ❌ No ❌ No ✅ Yes
MBS( "Events.Item.SetCalendar"; EKCalendarItem; EKCalendar )   More

Parameters

Parameter Description Example
EKCalendarItem The reference to the calendar item: an event or reminder. $item
EKCalendar The identifier or name of the calendar. $calendar

Result

Returns OK or error.

Description

Sets the calendar for the event.
You can pass calendar by ID or by name.

Examples

Set calendar:

Set Variable [$r; Value:MBS( "Events.Item.SetCalendar"; $reminder; $calendar )]

See also

Release notes

  • Version 8.0
    • Changed Events.Item.SetCalendar to pick reminder calendar by name if you edit reminder and not an events calendar.

Example Databases

Blog Entries

This function checks for a license.

Created 10th March 2016, last changed 4th January 2022


Events.Item.RemoveRecurrenceRule - Events.Item.SetLocation