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 the type of the calendar.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Calendar | 3.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |
Parameter | Description | Example |
---|---|---|
calendarRef | The id of the calendar to query. | $calendarRef |
Returns type or error.
Check status of calendar named "Privat":
MBS( "Calendar.Calendar.GetType"; "Privat" )
Check status of calendar with ID:
MBS( "Calendar.Calendar.GetType"; "B560017B-E414-4CD9-B3D1-3D6E7717D714" )
Shows types for all calendars:
While(
[
names = "";
// query list of Calendar IDs
list = MBS( "Calendar.Calendars" );
count = ValueCount(list);
index = 1
] ;
index ≤ count ;
[
id = GetValue(list; index);
// query name for each ID
name = MBS( "Calendar.Calendar.GetTitle"; id);
type = MBS( "Calendar.Calendar.GetType"; id);
names = names & name & " -> " & type & ¶;
index = index + 1
] ;
// return all the names
names )
Example result:
Birthdays -> Birthday
Work -> Local
Holidays -> Subscription
Family -> CalDAV
This function checks for a license.
Created 18th August 2014, last changed 14th June 2022