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

Calendar.NewEvent

Creates a new event.

Component Version macOS Windows Linux Server iOS SDK
Calendar 3.4 ✅ Yes ❌ No ❌ No ❌ No ❌ No
MBS( "Calendar.NewEvent" )

Parameters

none

Result

Returns ID of new event.

Description

Creates a new event.
Calendar item reference numbers are starting at 27000 and counting up for each new item.
Or the plugin returns you the UUID for the event.

Examples

Create an event:

#new event
Set Variable [$c; Value:MBS("Calendar.NewEvent")]
# set title and other variables
Set Variable [$r; Value:MBS("Calendar.Item.SetTitle"; $c; CalendarTest::ItemTitle)]
Set Variable [$r; Value:MBS("Calendar.Item.SetNotes"; $c; CalendarTest::ItemNotes)]
Set Variable [$r; Value:MBS("Calendar.Item.SetURL"; $c; CalendarTest::ItemURL)]
Set Variable [$r; Value:MBS("Calendar.Item.SetLocation"; $c;CalendarTest::ItemLocation)]
Set Variable [$r; Value:MBS("Calendar.Item.SetStartDate"; $c; CalendarTest::ItemStartDate)]
Set Variable [$r; Value:MBS("Calendar.Item.SetEndDate"; $c; CalendarTest::ItemEndDate)]
Set Variable [$r; Value:MBS("Calendar.Item.SetAllDay"; $c;CalendarTest::ItemAllDay)]
Set Variable [$r; Value:MBS("Calendar.Item.SetCalendar"; $c; CalendarTest::CalendarUID)]
# save event
Set Variable [$r; Value:MBS("Calendar.SaveEvent"; $c )]
# store id for later reference
Set Field [CalendarTest::ItemUID; MBS("Calendar.Item.GetUID"; $c)]

See also

Example Databases

This function checks for a license.

Created 18th August 2014, last changed 10th August 2016


Calendar.NewCalendar - Calendar.NewReminder