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

Calendar.Calendar.GetTitle

Queries the title of the calendar.

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

Parameters

Parameter Description Example
calendarRef The id of the calendar to query. $calendarRef

Result

Returns title or error.

Description

Queries the title of the calendar.

Examples

Queries name of first calendar:

$list = MBS( "Calendar.Calendars" )
$calendarRef = GetValue( $list ; 1 )
$title = MBS( "Calendar.Calendar.GetTitle"; $calendarRef )

Get title for calendar by ID:

MBS( "Calendar.Calendar.GetTitle"; "B560017B-E414-4CD9-B3D1-3D6E7717D714" )

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

Example result:
Birthdays
Work
Family

See also

Example Databases

This function checks for a license.

Created 18th August 2014, last changed 14th June 2022


Calendar.Calendar.GetNotes - Calendar.Calendar.GetType