Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5   8.6    Statistic  

Events.RecurrenceDayOfWeek.NewWithDayOfWeek

Creates a object with a day of the week.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Events 6.2 Yes No No No Yes
MBS( "Events.RecurrenceDayOfWeek.NewWithDayOfWeek"; dayOfTheWeek { ; WeekNumber } )   More

Parameters

Parameter Description Example value
dayOfTheWeek The day of the week. 1
WeekNumber Optional
The number of the week.
5

Result

Returns day of week reference ID or error.

Description

Creates a object with a day of the week.
EKRecurrenceDayOfWeek specifies either a simple day of the week, or the nth instance of a particular day of the week, such as the third Tuesday of every month. The week number is only valid when used with monthly or yearly recurrences, since it would be otherwise meaningless.
Valid values for dayOfTheWeek are integers 1-7, which correspond to days of the week with Sunday = 1. Valid values for weekNumber portion are (+/-)1-53, where a negative value indicates a value from the end of the range. For example, in a yearly event -1 means last week of the year. -1 in a Monthly recurrence indicates the last week of the month.
The value 0 also indicates the weekNumber is irrelevant (every Sunday, etc.).
Day-of-week weekNumber values that are out of bounds for the recurrence type will result in an exception when trying to initialize the recurrence. In particular, weekNumber must be zero when passing EKRecurrenceDayOfWeek objects to initialize a weekly recurrence.

Examples

Pick Sunday:

MBS( "Events.RecurrenceDayOfWeek.NewWithDayOfWeek"; 1)

See also

Created 10th March 2016, last changed 14th March 2017


Events.RecurrenceDayOfWeek.DayOfTheWeek   -   Events.RecurrenceDayOfWeek.WeekNumber

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins