Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   7.6    Statistic  

Events.NewAlarm

Creates a new alarm.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Events 6.2 Yes No Yes, macOS only No No

MBS( "Events.NewAlarm" )

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

Example Databases


Events.Item.lastModifiedDate   -   Events.NewAlarmWithAbsoluteDate

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins