Events.RecurrenceRule.SetPositions
----------------------------------

Queries the set positions.

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

MBS( "Events.RecurrenceRule.SetPositions"; EKRecurrenceRule ) 

**MBS**( **"Events.RecurrenceRule.SetPositions";** /\* Queries the set positions. \*/  
**$EKRecurrenceRule**) /\* The reference to the recurrence rule.e.g. $RecurrenceRule \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| EKRecurrenceRule | The reference to the recurrence rule. | $RecurrenceRule |

### Result

Returns list or error.

### Description

Queries the set positions.  
This property is valid for rules which have a valid daysOfTheWeek, daysOfTheMonth, weeksOfTheYear, or monthsOfTheYear property. It allows you to specify a set of ordinal numbers to help choose which objects out of the set of selected events should be included. For example, setting the daysOfTheWeek to Monday-Friday and including a value of -1 in the array would indicate the last weekday in the recurrence range (month, year, etc). This value corresponds to the iCalendar BYSETPOS property.  
### See also

- [Events.RecurrenceRule.Description](EventsRecurrenceRuleDescription.md)

This function checks for a license.

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

  
[Events.RecurrenceRule.NewWithFrequency](EventsRecurrenceRuleNewWithFrequency.md) - [Events.RecurrenceRule.SetRecurrenceEnd](EventsRecurrenceRuleSetRecurrenceEnd.md)

[HTML Version](EventsRecurrenceRuleSetPositions.shtml)