Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
13.5
Statistic
FMM
Blog
Queries type of calendar.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Events | 6.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
Parameter | Description | Example |
---|---|---|
EKCalendar | The identifier or name of the calendar. | $calendar |
Returns text or error.
Query calendar type by ID:
MBS( "Events.Calendar.GetType"; "51AC6CC1-C4AB-40D0-BB30-A8AAFB280ABD")
Query types of all calendars:
While(
[
names = "";
// query list of Calendar IDs
list = MBS( "Events.Calendars"; "Event" );
count = ValueCount(list);
index = 1
] ;
index ≤ count ;
[
id = GetValue(list; index);
// query name for each ID
name = MBS( "Events.Calendar.GetTitle"; id);
type = MBS( "Events.Calendar.GetType"; id);
names = names & name & " -> " & type & ¶;
index = index + 1
] ;
// return all the names
names )
Example result:
Family -> CalDAV
Holidays -> Subscription
Private -> Local
This function checks for a license.
Created 10th March 2016, last changed 14th June 2022