Sets the default parameter for the find command.
Scope: Global
Syntax
query lastfind
set lastfind [visible] [up] {asis TextString |
any TextString | element Num | line Num}
Options
visible |
Restrict search to lines that are currently displayed. Must be the first parameter specified. |
up |
Search upwards. If used, this parameter must precede any, asis, element, or line. |
asis TextString |
Search for a text string using the exact case of characters specified. |
any TextString |
Search for a text string regardless of case. |
element Num line Num |
Search for the specified line number. |
| Note: | The length of the entire lastfind parameter string is limited to a total of 250 characters. |
Description
The lastfind parameter determines the search that takes place if the find command is issued without parameters. If lastfind is not set explicitly, it takes its values from the most recently issued find command.
Example
To set a default find string of Help, type:
set lastfind any Help
Help is searched for regardless of case if a find command is used without parameters.
API Return Codes
-1 |
The length of the lastfind command string exceeds 250 characters. Limit the length of the entire string, which includes fixed parameters such as asis and any, to 250 characters. |
-1 |
The number specified was either outside the valid range or not a whole number. Issue the command again using a valid number. |
![]()
