CreateCalendarPage method

Creates a Calendar Page object.

Syntax


C++
HRESULT CreateCalendarPage (
   BSTR Name,
   BSTR Description,
   ERUTextFormat DescriptionFormat,
   VARIANT_BOOL WeekStartsOnSunday,
   LONG CreateOptions,
   IERUItem** ppCalendarPage)
Scripting languages
Set CalendarPage = Object.CreateCalendarPage (
   Name as String,
   Description as String,
   DescriptionFormat as ERUTextFormat,
   WeekStartsOnSunday as Boolean,
   CreateOptions as Long)

Parameters


Name

The name of the Calendar page. The name has to be unique in the container.

Description

The Calendar Page's description.

DescriptionFormat

The format of the Description parameter.

For further information, see ERUTextFormat.

WeekStartsOnSunday

The day in which a calendar week starts.

A value of TRUE means weeks start on Sunday. A value of FALSE means weeks start on Monday.

CreateOptions

One or more values from the ERUCreateOption enumeration, logically OR'ed together. At present, the only valid create options for CreateCalendarPage are erCreateOptIncludeComments, erCreateOptShowDescription and erCreateOptWeeksStartOnSunday.

ppCalendarPage

Upon return, An IERUItem interface pointer to the newly-added calendar page.

Return value


C++

The return code.

Scripting languages

An IERUItem interface pointer to the newly-added calendar page.

Remarks


The name of the new calendar page can be no longer than 126 characters.

Home

Interface

IERUContainer


See also

Creating Items