Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Calendar.Calendar.IsEditable
Whether calendar is editable.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Calendar | 3.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |
Parameters
Parameter | Description | Example |
---|---|---|
calendarRef | The id of the calendar to query. | $calendarRef |
Result
Return value or error.
Description
Whether calendar is editable.Returns 1 if calendar is editable or zero if not.
Examples
Check editable state by ID:
MBS( "Calendar.Calendar.IsEditable"; "B560017B-E414-4CD9-B3D1-3D6E7717D714" )
Check all calendars and whether they are editable:
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);
editable = MBS( "Calendar.Calendar.IsEditable"; id);
names = names & name & " -> " & if(editable; "editable"; "read only") & ¶;
index = index + 1
] ;
// return all the names
names )
Example result:
Birthdays -> read only
Work -> editable
Family -> editable
See also
- Calendar.Calendar.Duplicate
- Calendar.Calendar.GetTitle
- Calendar.Calendar.SetTitle
- Calendar.Calendars
This function checks for a license.
Created 18th August 2014, last changed 14th June 2022