| Message |
See the help for that.
Description
This returns the number of lines received by this world. However, see GetLinesInBufferCount for the number of lines currently in the output buffer, which might be different.
In other words, if you have the output buffer size at 1000 lines, then GetLineCount will be right for the first 1000 lines, then it will discard 100 lines, so after that line 1001 will actually be line 901 in the buffer.
So you really want GetLinesInBufferCount.
However, again, if this trigger (or another one which happened to fire previously) has added a Note to the output buffer, then the Note will be the last line, not the triggered line. Also, lines can wrap, so if you have a 2-line "line" (that is, a line which doesn't have a linefeed inside the wrapping column) then GetLinesInBufferCount would give the second line, not the first one.
But why do you need to get this in the first place? In most cases there is an easier way. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|