$editboxhistory » History » Version 6
Per Amundsen, 02/16/2023 09:38 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 | 6 | Per Amundsen | table(ktable). |
| 12 | |*Parameter*|*Description*| |
||
| 13 | | window | The window to retrieve [[Editbox Control<notextile>|</notextile>Editbox]] history from. | |
||
| 14 | | N | If N = 0, number of history items, otherwise the Nth item. | |
||
| 15 | 1 | Per Amundsen | |
| 16 | *Properties* |
||
| 17 | |||
| 18 | 6 | Per Amundsen | table(ktable). |
| 19 | |*Property*|*Description*| |
||
| 20 | | .pos | Returns the current [[Editbox Control<notextile>|</notextile>Editbox]] history position. | |
||
| 21 | 1 | Per Amundsen | |
| 22 | *Example* |
||
| 23 | |||
| 24 | <pre> |
||
| 25 | ; Print number of Editbox history items for the active window. |
||
| 26 | //echo -ag $editboxhistory($active, 0) |
||
| 27 | |||
| 28 | ; Print the first Editbox history item for the active window. |
||
| 29 | //echo -ag $editboxhistory($active, 1) |
||
| 30 | </pre> |