$editboxhistory » History » Version 4
Per Amundsen, 04/29/2018 12:55 AM
| 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 | *Parameters* |
||
| 8 | |||
| 9 | 4 | Per Amundsen | window - The window to retrieve [[Editbox Control|Editbox]] history from. |
| 10 | 1 | Per Amundsen | N - If N = 0, number of history items, otherwise the Nth item. |
| 11 | 2 | Per Amundsen | |
| 12 | *Properties* |
||
| 13 | |||
| 14 | 4 | Per Amundsen | .pos - Returns the current [[Editbox Control|Editbox]] history position. |
| 15 | 1 | Per Amundsen | |
| 16 | *Example* |
||
| 17 | |||
| 18 | <pre> |
||
| 19 | ; Print number of Editbox history items for the active window. |
||
| 20 | //echo -ag $editboxhistory($active, 0) |
||
| 21 | |||
| 22 | ; Print the first Editbox history item for the active window. |
||
| 23 | //echo -ag $editboxhistory($active, 1) |
||
| 24 | </pre> |