This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
jvs:fscan:manual:chapter2:setfilename [2013/08/12 18:39] voyvodic created |
jvs:fscan:manual:chapter2:setfilename [2023/02/23 18:43] (current) |
||
---|---|---|---|
Line 6: | Line 6: | ||
The SET FILENAME command creates a user-defined variable called VARBNAME and sets it to a file or directory name found via an interactive file browsing window. | The SET FILENAME command creates a user-defined variable called VARBNAME and sets it to a file or directory name found via an interactive file browsing window. | ||
- | FLAG: | + | The FLAG argument can be used to control search options.\\ |
+ | FLAG (octal values are listed; add positive values to combine options):\\ | ||
* 1 - ADDROOT: add the root directory '/' | * 1 - ADDROOT: add the root directory '/' | ||
* 2 - ADDBACK: add the parent directory ' | * 2 - ADDBACK: add the parent directory ' | ||
* 4 - FILETYPE: add filetype character before each file name | * 4 - FILETYPE: add filetype character before each file name | ||
- | * 8 - ATROOT: | + | * 010 - ATROOT: |
- | * 16 - SORT: | + | * 020 - SORT: sort the list alphabetically |
- | * 32 - ACCESS: only include files in browser if the user has access permission | + | * 040 - ACCESS: only include files in browser if the user has access permission |
- | * 64 - ROOTDIR: don't allow search above starting directory | + | * 0100 - ROOTDIR: don't allow search above starting directory |
- | * 128 - MULTIPLE: allow multiple files to be selected | + | * 0200 - MULTIPLE: allow multiple files to be selected |
- | * 256 - SORTFILETYPES: | + | * 0400 - SORTFILETYPES: |
- | * 512 - NEWLIST: | + | * 01000 - NEWLIST: |
- | * 1024 - 1STRING: return selected file(s) as single line string | + | * 02000 - 1STRING: return selected file(s) as single line string |
+ | * 04000 - REGFILES: include regular files | ||
+ | * 0100000 - NOBROWSE: find all files in ROOTDIR without opening a browser window | ||
+ | * 0200000 - DIRS: only list directories | ||
+ | * 0400000 - NODIRS: do not list directories | ||
* 0 - Default: ADDBACK + FILETYPE + SORT + 1STRING | * 0 - Default: ADDBACK + FILETYPE + SORT + 1STRING | ||
* -1 - ADDBACK + FILETYPE + SORT + 1STRING + MULTIPLE | * -1 - ADDBACK + FILETYPE + SORT + 1STRING + MULTIPLE | ||
+ | |||
+ | **Note:** Use the [[jvs: | ||
**See Also:**\\ | **See Also:**\\ |