engine:import:setvar2file
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| engine:import:setvar2file [2020/03/04 00:23] – Scott Cunliffe | engine:import:setvar2file [2025/01/21 22:07] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| '' | '' | ||
| - | //string varname;// | + | ^ Variable ^ Type ^ Description ^ Min Length ^ Max Length ^ Min Value ^ Max Value ^ |
| - | //string filter;// | + | |varname| String |
| - | //string field;// | + | |filter| String |
| - | //int offset;// | + | |Field| String |
| - | + | |offset| Integer | |
| - | |varname| The name of the local variable that is to be set.| | + | |
| - | |filter| A filter that matches the file that you want to select.| | + | |
| - | |Field| The field to pre-sort the selected pathnames before selection (NAME, CREATION, LASTACCESS, LASTWRITE or SIZE).| | + | |
| - | |offset| The offset within the sorted list to select. 1 is the top, 2 is the second from the top, -1 is the bottom, -2 is 2nd from the bottom.| | + | |
| ===== Example ===== | ===== Example ===== | ||
| Line 25: | Line 21: | ||
| Set variable MYFILE to the smallest text file in C:\stuff. | Set variable MYFILE to the smallest text file in C:\stuff. | ||
| - | <sxh> | + | <code> |
| SetVar2File(MYFILE, | SetVar2File(MYFILE, | ||
| WriteMsg(" | WriteMsg(" | ||
| - | </sxh> | + | </code> |
| {{tag> import_engine sync_engine}} | {{tag> import_engine sync_engine}} | ||
engine/import/setvar2file.1583281400.txt.gz · Last modified: 2025/01/21 22:07 (external edit)
