Project

General

Profile

$editboxhistory » History » Version 5

Per Amundsen, 08/18/2020 09:16 PM

1 1 Per Amundsen
_Added in 2.3_
2
3
*$editboxhistory(window,N)*
4
5 4 Per Amundsen
Returns the Nth [[Editbox Control|Editbox]] history item for the window.
6 1 Per Amundsen
7 5 Per Amundsen
_See also [[$editbox]], [[/editbox]]._
8
9 1 Per Amundsen
*Parameters*
10
11 4 Per Amundsen
window - The window to retrieve [[Editbox Control|Editbox]] history from.
12 1 Per Amundsen
N - If N = 0, number of history items, otherwise the Nth item.
13 2 Per Amundsen
14
*Properties*
15
16 4 Per Amundsen
.pos - Returns the current [[Editbox Control|Editbox]] history position.
17 1 Per Amundsen
18
*Example*
19
20
<pre>
21
; Print number of Editbox history items for the active window.
22
//echo -ag $editboxhistory($active, 0)
23
24
; Print the first Editbox history item for the active window.
25
//echo -ag $editboxhistory($active, 1)
26
</pre>