Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Events.RecurrenceRule.SetRecurrenceEnd
Sets the recurrence end.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Events | 6.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
MBS( "Events.RecurrenceRule.SetRecurrenceEnd"; EKRecurrenceRule; EKRecurrenceEnd ) More
Parameters
Parameter | Description | Example |
---|---|---|
EKRecurrenceRule | The reference to the recurrence rule. | $RecurrenceRule |
EKRecurrenceEnd | The reference to the recurrence end. | $RecurrenceEnd |
Result
Returns OK or error.
Description
Sets the recurrence end.This property defines when the the repeating event is scheduled to end. The end date can be specified by a number of occurrences, or with an end date.
Examples
Create a recurrence rule with end date for a yearly event:
Set Variable [ $rule ; Value: MBS( "Events.RecurrenceRule.NewWithFrequency"; "Yearly";"1" ) ]
Set Variable [ $end ; Value: MBS( "Events.RecurrenceEnd.NewWithEndDate"; Date ( 12 ; 30 ; 2025 ) ) ]
Set Variable [ $r ; Value: MBS( "Events.RecurrenceRule.SetRecurrenceEnd"; $rule; $end ) ]
Set Variable [ $r ; Value: MBS( "Events.Item.AddRecurrenceRule"; $item; $rule ) ]
See also
- Events.Item.AddRecurrenceRule
- Events.RecurrenceEnd.NewWithEndDate
- Events.RecurrenceRule.GetRecurrenceEnd
- Events.RecurrenceRule.NewWithFrequency
This function checks for a license.
Created 10th March 2016, last changed 1st November 2020
Events.RecurrenceRule.SetPositions - Events.RecurrenceRule.WeeksOfTheYear