Adds new calendars to the control.

Syntax

Send_Message(Ctrl, "OLE.AddCalendars", Calendars)

Parameters

ParameterDescription
Calendars@FM delimited list of Calendars

Remarks

The AddCalendars method adds new calendars to the control. While this is just one Calendar control, it can display multiple calendars just like Outlook. The one parameter takes @FM delimited list, each field having only two values:

Position
Name
Type
Description
<x, 1>
KeyTextThe unique key identifying this calendar.
<x, 2>
NameTextThe calendar's name.

NOTE: You must define calendars before adding appointments.

Example

// Add more calendars
Calendars = ""
Calendars<-1> = "VACATION":@VM:"Employee Time Off"
Calendars<-1> = "HOLIDAY" :@VM:"Company Holidays"
Send_Message(@Window:".OLE_CALENDAR", "OLE.AddCalendars", Calendars) 
  • No labels