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.NewAlarmWithRelativeOffset

Creates a new alarm with a relative trigger time.

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

MBS( "Events.NewAlarmWithRelativeOffset"; Offset )

Parameters

Parameter Description Example value
Offset The offset from the event start that the alarm should fire.
in Seconds.
3*60

Result

Returns reference number or error.

Description

Creates a new alarm with a relative trigger time.

Examples

New alarm in 3 minutes:

MBS( "Events.NewAlarmWithRelativeOffset"; 3 * 60 )

Add display alarm:

Set Variable [$alarm1; Value:MBS( "Events.NewAlarmWithRelativeOffset"; 0 )]
Set Variable [$r; Value:MBS("Events.Item.AddAlarm"; $c; $alarm1)]

Add alarm with sound 15 minutes before event:

Set Variable [$alarm2; Value:MBS( "Events.NewAlarmWithRelativeOffset"; -15*60 )]
Set Variable [$r; Value:MBS( "Events.Alarm.SetSound"; $alarm2; "Submarine" )]
Set Variable [$r; Value:MBS("Events.Item.AddAlarm"; $c; $alarm2)]

See also


Events.NewAlarmWithAbsoluteDate   -   Events.NewCalendar

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins