TRVChatMessageCollection.FindById, FindItemById

<< Click to display table of contents >>

TRVChatMessageCollection.FindById, FindItemById

These methods search for a collection item by its Id.

function FindById(

  const Id: TRVChatItemId): Integer;

 
function FindItemById(

  const Id: TRVChatItemId): TRVChatMessage;

If found, FindItemById returns this item; FindById returns its index (zero-based).

If not found, FindItemById returns nil; FindById returns -1.

See also:

FindByGlobalIndex, FindItemByGlobalIndex

FindByDate, FindItemByDate