Platforms to show: All Mac Windows Linux Cross-Platform

CalCalendarItemMBS.calendar as CalCalendarMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Calendar MBS MacFrameworks Plugin 7.7 Yes No No Yes, macOS only No
Function: The calendar of this item.
Notes: (Read and Write property)

Feedback, Comments & Corrections

CalCalendarItemMBS.dateStamp as date
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Calendar MBS MacFrameworks Plugin 7.7 Yes No No Yes, macOS only No
Function: The datestamp of this calendar item.
Notes:
This value is read only.
(Read only property)

Feedback, Comments & Corrections

CalCalendarItemMBS.Handle as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Calendar MBS MacFrameworks Plugin 7.7 Yes No No Yes, macOS only No
Function: The internal used CalCalendarItem reference.
Notes: (Read and Write property)

Feedback, Comments & Corrections

CalCalendarItemMBS.notes as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Calendar MBS MacFrameworks Plugin 7.7 Yes No No Yes, macOS only No
Function: The notes text for this item.
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
Notes: (Read and Write property)

Feedback, Comments & Corrections

CalCalendarItemMBS.title as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Calendar MBS MacFrameworks Plugin 7.7 Yes No No Yes, macOS only No
Function: The title for this calendar item.
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)
Notes: (Read and Write property)

Feedback, Comments & Corrections

CalCalendarItemMBS.uid as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Calendar MBS MacFrameworks Plugin 7.7 Yes No No Yes, macOS only No
Function: The unique ID for this item.
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
Notes:
This value is read only.
(Read only property)

Feedback, Comments & Corrections

CalCalendarItemMBS.URL as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Calendar MBS MacFrameworks Plugin 7.7 Yes No No Yes, macOS only No
Function: The URL for this calendar item.
Notes: (Read and Write property)

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS MacFrameworks Plugin.

The biggest plugin in space...




Links
MBS Xojo Plugins