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 |
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
- Calendar.Calendar.GetColor
- Calendar.Calendar.GetNotes
- Calendar.Calendar.GetType
- Calendar.Calendar.GetUID
- Calendar.Calendar.IsEditable
- Calendar.Calendar.SetColor
- Calendar.Calendar.SetNotes
- Calendar.Calendars
- Events.Calendar.GetTitle
- Events.Calendar.SetTitle
Example Databases
- Mac and iOS/Events/Calendar/Calendar Changes
- Mac and iOS/Events/Calendar/Calendar Events
- Mac and iOS/Events/Calendar/Calendar Import
- Mac and iOS/Events/Calendar/Reminders
FileMaker Magazin
This function checks for a license.
Created 18th August 2014, last changed 14th June 2022