Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Events.Calendar.GetTitle

Gets the title of the calendar

Component Version macOS Windows Linux Server iOS SDK
Events 6.2 ✅ Yes ❌ No ❌ No ❌ No ✅ Yes
MBS( "Events.Calendar.GetTitle"; EKCalendar )   More

Parameters

Parameter Description Example
EKCalendar The identifier or name of the calendar. $calendar

Result

Returns text or error.

Description

Gets the title of the calendar

Examples

Query IDs and names for all:

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);
    names = names & id & " -> " & name & ¶;
    index = index + 1
] ;
// return all the names
names )

Example result:
EE3CFEA6-D8C0-4C00-1AFF-6DF20E06F451 -> Family
7075F0C3-CD5D-434D-2C9D-317030C9E582 -> Work
18F3F280-BA39-45BA-31DF-97C898D7A363 -> US Holidays

See also

Example Databases

This function checks for a license.

Created 10th March 2016, last changed 14th June 2022


Events.Calendar.GetSource - Events.Calendar.GetType