Events.Calendar.SetTitle
------------------------

Sets the title of the calendar.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Events](component_Events.md) | [6.2](newinversion62.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "Events.Calendar.SetTitle"; EKCalendar; Title ) 

**MBS**( **"Events.Calendar.SetTitle";** /\* Sets the title of the calendar. \*/  
**$EKCalendar**; /\* The identifier or name of the calendar.e.g. $calendar \*/   
**$Title**) /\* The new title. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| EKCalendar | The identifier or name of the calendar. | $calendar |
| Title | The new title. |  |

### Result

Returns OK or error.

### Description

Sets the title of the calendar.  
You need to save the changes to be persistent.  
### Examples

Sets the title:

 Set Variable \[ $r ; Value: MBS ( "Events.Calendar.SetTitle"; $Calendar ; "Test" ) \]  
### See also

- [Calendar.Calendar.SetTitle](CalendarCalendarSetTitle.md)
- [Events.Calendar.Duplicate](EventsCalendarDuplicate.md)
- [Events.Calendar.GetColor](EventsCalendarGetColor.md)
- [Events.Calendar.GetSource](EventsCalendarGetSource.md)
- [Events.Calendar.GetTitle](EventsCalendarGetTitle.md)
- [Events.Calendar.GetType](EventsCalendarGetType.md)
- [Events.Calendar.Immutable](EventsCalendarImmutable.md)
- [Events.Calendar.SetColor](EventsCalendarSetColor.md)
- [Events.Calendar.SetSource](EventsCalendarSetSource.md)
- [Events.SaveCalendar](EventsSaveCalendar.md)

### Example Databases

- [Mac and iOS/Events/Events Create Event](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/Events/Events%20Create%20Event.shtml#4ScriptAnchor_)

This function checks for a license.

Created 10th March 2016 , last changed 13th July 2023

  
[Events.Calendar.SetSource](EventsCalendarSetSource.md) - [Events.Calendar.Subscribed](EventsCalendarSubscribed.md)

[HTML Version](EventsCalendarSetTitle.shtml)