Events.Calendar.GetColor
------------------------

Returns the calendar color.

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

MBS( "Events.Calendar.GetColor"; EKCalendar { ; ReturnAsNumbers } ) 

**MBS**( **"Events.Calendar.GetColor";** /\* Returns the calendar color. \*/  
**$EKCalendar**; /\* The identifier or name of the calendar.e.g. $calendar \*/   
**$ReturnAsNumbers**) /\* Optional; Pass 1 to return color as list of red, green and blue, e.g. "123¶234¶56"  
Pass 0 (default) for return as hex value, e.g. "7788FF".e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| EKCalendar | The identifier or name of the calendar. | $calendar |  |
| ReturnAsNumbers | Pass 1 to return color as list of red, green and blue, e.g. "123¶234¶56"   Pass 0 (default) for return as hex value, e.g. "7788FF". | 0 | Optional      Added in version **8.3**. |

### Result

Returns color value or error.

### Description

Returns the calendar color.  
### Examples

Returns color for calendar:

 MBS ( "Events.Calendar.GetColor"; "Firma" )  
Returns for calendar identified by ID:

 MBS ( "Events.Calendar.GetColor"; "51AC6CC1-C4AB-40D0-BB30-A8AAFB280ABD")  
### See also

- [Calendar.Calendar.GetColor](CalendarCalendarGetColor.md)
- [Calendar.Calendar.SetColor](CalendarCalendarSetColor.md)
- [Events.Calendar.GetSource](EventsCalendarGetSource.md)
- [Events.Calendar.GetTitle](EventsCalendarGetTitle.md)
- [Events.Calendar.GetType](EventsCalendarGetType.md)
- [Events.Calendar.SetColor](EventsCalendarSetColor.md)
- [Events.Calendar.SetSource](EventsCalendarSetSource.md)
- [Events.Calendar.SetTitle](EventsCalendarSetTitle.md)

### Release notes

- **Version 8.3**
    - Added ReturnAsNumbers parameter for [Calendar.Calendar.GetColor](http://www.mbsplugins.eu/CalendarCalendarGetColor.shtml), [Events.Calendar.GetColor](http://www.mbsplugins.eu/EventsCalendarGetColor.shtml), [SyntaxColoring.GetScriptHighlightColor](http://www.mbsplugins.eu/SyntaxColoringGetScriptHighlightColor.shtml), [SyntaxColoring.GetScriptIfColor](http://www.mbsplugins.eu/SyntaxColoringGetScriptIfColor.shtml), [SyntaxColoring.GetScriptLoopColor](http://www.mbsplugins.eu/SyntaxColoringGetScriptLoopColor.shtml), [SyntaxColoring.GetScriptSearchColor](http://www.mbsplugins.eu/SyntaxColoringGetScriptSearchColor.shtml) and [SyntaxColoring.LineNumbers.GetColor](http://www.mbsplugins.eu/SyntaxColoringLineNumbersGetColor.shtml).

### Blog Entries

- [MBS FileMaker Plugin, version 8.3pr2](https://www.mbsplugins.de/archive/2018-06-18/MBS_FileMaker_Plugin_version_8/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 10th March 2016 , last changed 13th June 2018

  
[Events.Calendar.Duplicate](EventsCalendarDuplicate.md) - [Events.Calendar.GetSource](EventsCalendarGetSource.md)

[HTML Version](EventsCalendarGetColor.shtml)