TRVChat.FindMessages

<< Click to display table of contents >>

TRVChat.FindMessages

Returns a list of indexes of messages whose text contains the specified string.

function FindMessages(const Text: TRVUnicodeString;

  AStartIndex: Integer = 0; AMaxCount: Integer = 0;

  CaseSensitive: Boolean = False): TRVIntegerList;

Parameters

Text – text to find in messages.

The search starts from Messages[AStartIndex].

If AMaxCount > 0, the search returns at most AMaxCount messages. If AMaxCount <= 0, the search returns all found messages.

CaseSensitive specifies whether the search is case-sensitive.

Return value

A list of the found messages, or nil if none are found.