Events.StructuredLocation.NewLocationWithTitle
----------------------------------------------

Creates a new location.

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

MBS( "Events.StructuredLocation.NewLocationWithTitle"; Title ) 

**MBS**( **"Events.StructuredLocation.NewLocationWithTitle";** /\* Creates a new location. \*/  
**$Title**) /\* The new title of location.e.g. "Hamburg, Germany" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Title | The new title of location. | "Hamburg, Germany" |

### Result

Returns reference ID or error.

### Description

Creates a new location.  
Returns reference ID which you can pass to [Events.Event.SetStructuredLocation](EventsEventSetStructuredLocation.md) function.  
### Examples

Create structured location for alarm:

 Set Variable \[$l ; Value:MBS ( "Events.StructuredLocation.NewLocationWithTitle"; Events Create Reminder::AlarmLocationTitle )\]  
Set Variable \[$r ; Value:MBS ( "[Events.StructuredLocation.SetRadius](EventsStructuredLocationSetRadius.md)"; $l ; Events Create Reminder::AlarmLocationRadius )\]  
Set Variable \[$r ; Value:MBS ( "[Events.StructuredLocation.SetGeoLocation](EventsStructuredLocationSetGeoLocation.md)"; $l ; Events Create Reminder::AlarmLocationGeoLat ; Events Create Reminder::AlarmLocationGeoLong )\]  
Set Variable \[$r ; Value:MBS ( "[Events.Alarm.SetStructuredLocation](EventsAlarmSetStructuredLocation.md)"; $alarm ; $l )\]  
Set Variable \[$r ; Value:MBS ( "[Events.Alarm.SetProximity](EventsAlarmSetProximity.md)"; $alarm ; Events Create Reminder::AlarmProximity )\]  
### See also

- [Events.Alarm.SetProximity](EventsAlarmSetProximity.md)
- [Events.Alarm.SetRelativeOffset](EventsAlarmSetRelativeOffset.md)
- [Events.Alarm.SetStructuredLocation](EventsAlarmSetStructuredLocation.md)
- [Events.Event.SetStructuredLocation](EventsEventSetStructuredLocation.md)
- [Events.Item.AddAlarm](EventsItemAddAlarm.md)
- [Events.NewAlarm](EventsNewAlarm.md)
- [Events.NewReminder](EventsNewReminder.md)
- [Events.SaveReminder](EventsSaveReminder.md)
- [Events.StructuredLocation.SetGeoLocation](EventsStructuredLocationSetGeoLocation.md)
- [Events.StructuredLocation.SetRadius](EventsStructuredLocationSetRadius.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#1ScriptAnchor_)
- [Mac and iOS/Events/Events Create Reminder](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/Events/Events%20Create%20Reminder.shtml#1ScriptAnchor_)

This function is free to use.

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

  
[Events.StructuredLocation.GetRadius](EventsStructuredLocationGetRadius.md) - [Events.StructuredLocation.SetGeoLocation](EventsStructuredLocationSetGeoLocation.md)

[HTML Version](EventsStructuredLocationNewLocationWithTitle.shtml)