Table of Contents

TTMSFNCPlanner.HasItem Method

Returns whether an item exists in the specified time range and position.

API unit family: TMSFNCPlanner Declaring type: TTMSFNCPlanner Inherited from: TTMSFNCCustomPlanner

Syntax

function HasItem(AStartTime, AEndTime: TDateTime; APosition: Integer; ACompareWithItemIndex: Integer = -1; ACheckOverlap: Boolean = True): Boolean; virtual;

Parameters

Name Description
AStartTime Start date and time of the range to test.
AEndTime End date and time of the range to test.
APosition Visible position index to test.
ACompareWithItemIndex Item index to ignore during comparison, or -1 to compare all items.
ACheckOverlap When True, overlapping item ranges count as a match.

Returns

True when a matching item exists.