Home API Manuals About Forum
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

LineCount

Returns the number of matches found by the last InJournal or InJournalBetweenTimes call.

This property is updated after each journal search operation.

Возвращает количество совпадений, найденных последним вызовом InJournal или InJournalBetweenTimes.

Это свойство обновляется после каждой операции поиска по журналу.

Pascal

function LineCount: Integer;

Python

def LineCount() -> int: ...

Pascal Example

begin
  SetJournalLine(0);
  if InJournal('gold') >= 0 then
    AddToSystemJournal('Found ' + IntToStr(LineCount) + ' matches for "gold"');
end.

Python Example

SetJournalLine(0)
if InJournal('gold') >= 0:
    AddToSystemJournal(f'Found {LineCount()} matches for "gold"')

See Also

InJournal, LineIndex, LineName, LineTime