TRVChatMessageCollection.FindByDate, FindItemByDate

<< Click to display table of contents >>

TRVChatMessageCollection.FindByDate, FindItemByDate

Returns the first message written on the specified date or later.

function FindByDate(
  ADate: TDate): Integer;

 
function FindItemByDate(

  ADate: TDate): TRVChatMessage;

The methods assume that all messages are sorted in ascending order by the DateTime property.

If found, FindItemByDate returns the item; FindByDate returns its index (zero-based).

If not found, FindItemByDate returns nil; FindByDate returns -1.

See also:

FindByGlobalIndex, FindItemByGlobalIndex

FindById, FindItemById