LineIndex
Returns the line index of the last matched journal entry.
This property is updated after InJournal, InJournalBetweenTimes, Journal, or LastJournalMessage calls.
The line index can be passed to Journal to retrieve the text, or to SetJournalLine to set the search starting point.
Возвращает индекс строки последней найденной записи журнала.
Это свойство обновляется после вызовов InJournal, InJournalBetweenTimes, Journal или LastJournalMessage.
Индекс строки можно передать в Journal для получения текста или в SetJournalLine для установки начальной точки поиска.
function LineIndex: Integer;
def LineIndex() -> int: ...
begin
if InJournal('vendor') >= 0 then
AddToSystemJournal('Match at index: ' + IntToStr(LineIndex) +
' text: ' + Journal(LineIndex));
end.
if InJournal('vendor') >= 0:
AddToSystemJournal(f'Match at index: {LineIndex()} text: {Journal(LineIndex())}')