Project

General

Profile

$line » History » Version 1

Per Amundsen, 08/11/2015 01:22 PM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$line(@name,N,[T])*
4
5
Returns the Nth line of text in the specified window.
6
7
*Parameters*
8
9
@name - The window to retrieve text from.
10
N - If N = 0 number of lines, otherwise the Nth line.
11
[T] - If T = 0 use display area (default) if T = 1, use side-listbox. (optional)
12
13
*Example*
14
15
<pre>
16
; Create a custom window.
17
/window @Example
18
19
; Add a few lines to the window.
20
/aline @Example Test1
21
/aline @Example Test2
22
/aline @Example Test3
23
24
; Print number of lines in the window.
25
//echo -ag $line(@Example, 0)
26
27
; Print the second line in the window.
28
//echo -ag $line(@Example, 2)
29
</pre>