CheckCalendar @Command (Formula Language)

Pops up a dialog box containing a one-day calendar view. The current database must contain a calendar view for this command to function properly.

Syntax

@Command( [CheckCalendar]; timedate )

Parameters

timedate

Time-date. Optional. Specify the date you want to view in the one-day calendar that displays in the dialog box. If no date is supplied, today's date displays by default.

Usage

You can add this command to action button code in a mail memo to enable recipients of meeting invitations to check their calendars without having to toggle between their Calendar and Inbox views; the recipient can click and drag the dialog box.

This command does not work on the Web.

Examples

The following code, when added to an action button on a Notice form, which is a form that notifies meeting invitees of the time and location of a meeting, displays a dialog box containing a one-day view of the invitee's calendar. Notes® determines the day to display in the view based on the dates specified in the StartDate, DueDate, or NewStartDate fields, in that order. It displays the calendar information for the first date it encounters; if none of the fields contains a date, it displays today's date:
DateToDisplay := @If(@IsAvailable(StartDate);StartDate;
@IsAvailable(DueDate);DueDate;@IsAvailable(NewStartDate);NewStartDate;
@Today);
@Command([CheckCalendar]; DateToDisplay)