Skip to main content

TcxCustomSchedulerStorage.CreateOccurrence(TcxSchedulerEvent,TDateTime,TcxEventType) Method

Creates occurrence of the APattern parent at the ADate date.

Declaration

function CreateOccurrence(APattern: TcxSchedulerEvent; const ADate: TDateTime; AType: TcxEventType): TcxSchedulerEvent;

Parameters

Name Type
APattern TcxSchedulerEvent
ADate TDateTime
AType TcxEventType

Returns

Type
TcxSchedulerEvent

Remarks

Use the CreateOccurrence method to create occurrence of the etException or etCustom type.

The APattern parameter specifies the parent user event of the current occurrence, that is the user event whose TcxSchedulerEvent.EventType property is set to etPattern.

The ADate parameter specifies the occurrence’s date.

The AType parameter specifies the occurrence’s status (etException or etCustom).

Note

Before you call the CreateOccurrence method, make sure that there are no APattern occurrences of the etException or etCustom type on the ADate date.

See Also