Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxSchedulerOccurrenceCalculator.GetOccurrenceCount(TDateTime) Method

Returns a count of the total number of occurrences up to the AEndDate date.

#Declaration

Delphi
function GetOccurrenceCount(AEndDate: TDateTime): Integer;

#Parameters

Name Type
AEndDate TDateTime

#Returns

Type
Integer

#Remarks

The GetOccurrenceCount method counts the number of occurrences from the first occurrence up to the specified end date that have been spawned from the given recurring user event (see the Event property). The occurrences that are represented in the chain of occurrences can be of any type – regular occurrences, custom occurrences or exceptions.

The AEndDate parameter specifies the date up to which the occurrences will be counted.

Note

this method gets a count of the occurrences depending upon the Recurrence pattern specified for the given recurring user event, and the AEndDate date.

See Also