Menu Object
 
Syntax
 
Menu.AppCalendar [AppointmentID][, CalendarDate][, ViewMode][, AddVCALENDAR][, htmlBody]
 
Description
Opens the Calendar application. Optionally, a specific appointment can be opened directly, an initial date can be set, and the view mode can be specified.
 
Parameter
Description
AppointmentID
Optional. Internal ID of the appointment to open directly. Default value 0 (no specific appointment; calendar overview is shown).
CalendarDate
Optional. The date on which the calendar opens. If omitted, the current date is used. This parameter must be provided when using ViewMode, AddVCALENDAR, or htmlBody.
ViewMode
Optional. The view mode displayed when the calendar opens. Default value avmTabMonthView. Valid values:
avmShowDetails (-1) = Open appointment detail view,
avmTabDetails (1) = Details tab,
avmTabLogs (2) = Logs tab,
avmTabWeekView (3) = Week view,
avmTabMonthView (4) = Month view,
avmTabTasksView (5) = Tasks view.
AddVCALENDAR
Optional. A vCalendar-formatted string (iCal) to import directly into the calendar upon opening.
htmlBody
Optional. HTML content to pre-fill the appointment body when creating a new appointment.
See Also
AppAgenda (Dutch variant)
Example
 
Sub Main
    Menu.AppCalendar CalendarDate:=#04-01-2026#, ViewMode:=avmTabWeekView
End Sub