CalendarSetMode method (WinStudio scripts)

Applies To

IWSFormComponent interface

Definition

Sets the calendar viewing mode.

Syntax

CalendarSetMode (int mode)

  Part   Description
mode Required. The calendar viewing mode.

Remarks

The mode determines whether the calendar component is displayed by day, week, or month.

Valid parameter values are:

  • 0 - Day
  • 1 - Week
  • 2 - Month

This method only has a Set Syntax.

Note:  In Calendar components, this value is set using the Calendar Settings dialog box.

Examples

See Example for component objects.

Sub Main()
    ThisForm.Components("calendar").CalendarSetMode(0)
End Sub