CodeCharge Studio

Events Run-Time Property (PHP)

Applies to

Calendar Form

Type

array

Access

read/write

Syntax

object->Events [= value] 

Description

Contains the calendar events. This value can be manually modified.

Note: The value of this property can be also modified in Before Show event.

Examples

The following example shows how to add new event.

$CustomEventDateStr = "20120101";
$CustomEventTime = CCParseDate("12:00", array("HH", ":", "nn"));
$CustomEvent = new clsEventNewCalendar1();
$CustomEvent->_Time = $CustomEventTime;
$CustomEvent->EventTime = $CustomEventTime;
$CustomEvent->EventDescription = "Some text";
$Calendar1->Events[$CustomEventDateStr][] = $CustomEvent;


On-line, printable versions and updates