TRVChatUserCollection.FindById, FindItemById

<< Click to display table of contents >>

TRVChatUserCollection.FindById, FindItemById

These methods search for a collection item by its Id.

function FindById(

  const Id: TRVChatItemId): Integer;

 
function FindItemById(

  const Id: TRVChatItemId): TRVChatUser;

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

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