Platforms to show: All Mac Windows Linux Cross-Platform
CalCalendarItemMBS.calendar as CalCalendarMBS
Function:
The calendar of this item.
Notes: (Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Calendar | MBS MacFrameworks Plugin | 7.7 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Notes: (Read and Write property)
CalCalendarItemMBS.dateStamp as date
Function:
The datestamp of this calendar item.
Notes:
This value is read only.
(Read only property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Calendar | MBS MacFrameworks Plugin | 7.7 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Notes:
This value is read only.
(Read only property)
CalCalendarItemMBS.Handle as Integer
Function:
The internal used CalCalendarItem reference.
Notes: (Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Calendar | MBS MacFrameworks Plugin | 7.7 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Notes: (Read and Write property)
CalCalendarItemMBS.notes as String
Function:
The notes text for this item.
Example:
Notes:
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Calendar | MBS MacFrameworks Plugin | 7.7 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Example:
dim c as new CalCalendarStoreMBS
// set the date range where we look for event
dim sd as new date(2016,6,7,0,0,0)
dim ed as new date(2016,6,7,23,59,59)
// look for an event on that date
dim a() as CalEventMBS = c.events(sd,ed, c.calendars)
dim e as CalEventMBS = a(1)
// show notes
MsgBox e.notes
// change it
e.notes = "Just a test"
// check again
MsgBox e.notes
// Save
dim error as NSErrorMBS
dim ok as Boolean = c.saveEvent(e, c.CalSpanThisEvent, error)
if ok then
MsgBox "OK"
elseif error <> nil then
MsgBox error.LocalizedDescription
else
MsgBox "Failed."
end if
CalCalendarItemMBS.title as String
Function:
The title for this calendar item.
Example:
Notes:
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Calendar | MBS MacFrameworks Plugin | 7.7 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Example:
// init
dim s as new CalCalendarStoreMBS
// Get date range for today
dim Startdate as new date
dim Enddate as new date
Startdate.hour = 0
Startdate.Minute = 0
Startdate.Second = 0
Enddate.hour = 23
Enddate.minute = 59
Enddate.second = 59
// Query events on all calendars
dim events() as CalEventMBS = s.events(Startdate,Enddate)
// Display result
dim lines(-1) as string
for each e as CalEventMBS in events
lines.Append e.Title
next
MsgBox Join(lines,EndOfLine)
CalCalendarItemMBS.uid as String
Function:
The unique ID for this item.
Example:
Notes:
This value is read only.
(Read only property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Calendar | MBS MacFrameworks Plugin | 7.7 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Example:
// start a connection to the calendar database
dim s as new CalCalendarStoreMBS
// needed for the error details
dim e as NSErrorMBS
// create a new calendar event
dim c as new CalEventMBS
dim calendars() as CalCalendarMBS = s.calendars
// set properties
c.Title="new Event"
c.startDate=new date
c.calendar=calendars(0) // add to first calendar
dim d as new date
d.hour=d.hour+1
c.endDate=d
// save event
call s.saveEvent(c,s.CalSpanAllEvents, e)
if e<>nil then
MsgBox e.localizedDescription
else
// show the UID
MsgBox "New event was created with UID: "+c.uid
end if
This value is read only.
(Read only property)
CalCalendarItemMBS.URL as String
Function:
The URL for this calendar item.
Notes: (Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Calendar | MBS MacFrameworks Plugin | 7.7 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Notes: (Read and Write property)
The items on this page are in the following plugins: MBS MacFrameworks Plugin.

Links
MBS FileMaker blog