Calendar.Item.SetLocation
-------------------------

Sets a location for an event.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Calendar](component_Calendar.md) | [3.4](newinversion34.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

### Deprecated

This function was [deprecated](deprecated.md).

MBS( "Calendar.Item.SetLocation"; EventRef; Text ) 

**MBS**( **"Calendar.Item.SetLocation";** /\* Sets a location for an event. \*/  
**$EventRef**; /\* The reference to the event. \*/   
**$Text**) /\* The new location text.e.g. "Hamburg" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| EventRef | The reference to the event. | $eventRef |
| Text | The new location text. | "Hamburg" |

### Result

Returns OK or error.

### Description

Sets a location for an event.  
### See also

- [Calendar.Alarm.SetAction](CalendarAlarmSetAction.md)
- [Calendar.Item.GetLocation](CalendarItemGetLocation.md)
- [Calendar.Item.SetDueDate](CalendarItemSetDueDate.md)
- [Calendar.Item.SetEndDate](CalendarItemSetEndDate.md)
- [Calendar.Item.SetNotes](CalendarItemSetNotes.md)
- [Calendar.Item.SetPriority](CalendarItemSetPriority.md)
- [Calendar.NewEvent](CalendarNewEvent.md)
- [Calendar.SaveEvent](CalendarSaveEvent.md)
- [Events.Item.SetLocation](EventsItemSetLocation.md)

### Example Databases

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

### Blog Entries

- [MBS FileMaker Advent calendar - Door 16 - Add Entries In Apple Calendar](https://www.mbsplugins.de/archive/2024-12-16/MBS_FileMaker_Advent_calendar_/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[Calendar.Item.SetEndDate](CalendarItemSetEndDate.md) - [Calendar.Item.SetNotes](CalendarItemSetNotes.md)

[HTML Version](CalendarItemSetLocation.shtml)