CodeCharge Studio

GetEvents Method (ASP)

Applies to

Calendar Form

Syntax

Set ev = object.GetEvents DateEvents

Return value

object

Parameters

Name Type Description Required
DateEvents date Specifies the date for which the events should be returned. Yes

Description

This method returns calendar events for the specified date.

Examples

The following example shows how to retrieve events for current date.

Dim DayEvents
Set DayEvents = Calendar1.GetEvents(Calendar1.CurrentProcessingDate))
If DayEvents Is Nothing Then
   Calendar1.label1.Value=""
Else
   Calendar1.label1.Value=DayEvents.Count
End If

See also

CalendarSetEvent


On-line, printable versions and updates