Difference between revisions of "Journal.count"

From OpenEUO
Jump to: navigation, search
(Created page with "== Calling Pattern == Call local j = sl.journal() later local a,b = j.count() Returns a is a number, the total number of journal messages b is a number, the number of unread ...")
 
(No difference)

Latest revision as of 20:23, 8 January 2011

Calling Pattern

Call

local j = sl.journal()

later

local a,b = j.count()

Returns

a is a number, the total number of journal messages
b is a number, the number of unread lines since last mark or nextline call

Description

Count returns the total number of lines in the internal message store. Count does not force an update of the store from the journal-- if that is needed, call refresh instead.

See Also