TRVChatMessageCollection.FindByGlobalIndex, FindItemByGlobalIndex

<< Click to display table of contents >>

TRVChatMessageCollection.FindByGlobalIndex, FindItemByGlobalIndex

These methods search for a collection item by its GlobalIndex.

function FindByGlobalIndex(
  GlobalIndex: Integer): Integer;

 
function FindItemByGlobalIndex(
  GlobalIndex: Integer): TRVChatMessage;

If found, FindItemByGlobalIndex returns this item; FindByGlobalIndex returns its index (zero-based).

If not found, FindItemByGlobalIndex returns nil; FindByGlobalIndex returns -1.

See also:

FindInsertionPlace

FindById, FindItemById

FindByDate, FindItemByDate