Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
Events.NewAlarm
Creates a new alarm.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Events | 6.2 | Yes | No | No | No | Yes |
Parameters
none
Result
Returns reference number or error.
Description
Creates a new alarm.Examples
Add alarm:
Set Variable [$alarm; Value:MBS( "Events.NewAlarm" )]
If [not IsEmpty(Events Create Reminder::AlarmSound)]
Set Variable [$r; Value:MBS( "Events.Alarm.SetSound"; $alarm; Events Create Reminder::AlarmSound )]
End If
If [not IsEmpty(Events Create Reminder::AlarmLocationTitle)]
Set Variable [$l; Value:MBS( "Events.StructuredLocation.NewLocationWithTitle"; Events Create Reminder::AlarmLocationTitle )]
Set Variable [$r; Value:MBS( "Events.StructuredLocation.SetRadius"; $l; Events Create Reminder::AlarmLocationRadius )]
Set Variable [$r; Value:MBS( "Events.StructuredLocation.SetGeoLocation"; $l; Events Create Reminder::AlarmLocationGeoLat; Events Create Reminder::AlarmLocationGeoLong )]
Set Variable [$r; Value:MBS( "Events.Alarm.SetStructuredLocation"; $alarm; $l)]
Set Variable [$r; Value:MBS( "Events.Alarm.SetProximity"; $alarm; Events Create Reminder::AlarmProximity )]
End If
Set Variable [$r; Value:MBS( "Events.Item.AddAlarm"; $reminder; $alarm )]
See also
- Events.Alarm.SetProximity
- Events.Alarm.SetRelativeOffset
- Events.Alarm.SetSound
- Events.Alarm.SetStructuredLocation
- Events.NewAlarmWithAbsoluteDate
- Events.NewAlarmWithRelativeOffset
- Events.NewReminder
- Events.SaveReminder
- Events.StructuredLocation.SetGeoLocation
- Events.StructuredLocation.SetRadius
Example Databases
Created 10th March 2016, last changed 13th March 2016
Events.Item.lastModifiedDate - Events.NewAlarmWithAbsoluteDate
Feedback: Report problem or ask question.
Links
MBS FileMaker blog