Project

General

Profile

$msfile » History » Version 4

Per Amundsen, 07/20/2022 09:20 PM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$msfile(dir,[title],[oktext])*
4
5
Displays the multiple select file dialog and returns the number of selected files.
6
7
*Parameters*
8
9
dir - Starting folder in the file dialog.
10
[title] - Dialog title text. (optional)
11 2 Per Amundsen
[oktext] - *TODO*  (optional)
12 1 Per Amundsen
13
*Example*
14
15
<pre>
16
; Select some files and print the number of selected files.
17
//echo -ag Number of selected files is $msfile($adiircdir, Select Files)
18
</pre>
19
20
-----------------------------------------------------------------------------
21
22 4 Per Amundsen
*$msfile(N)*
23 1 Per Amundsen
24
Returns the Nth file from the last [[$msfile]] selection.
25
26
*Parameters*
27
28
N - If N = 0, number of selected files, otherwise the Nth selected file.
29
30
*Example*
31
32
<pre>
33
; Select some files.
34
//noop $msfile($adiircdir, Select Files)
35
36
; Print the first selected file.
37 3 Per Amundsen
//echo -ag First selected file was $msfile(1)
38 1 Per Amundsen
</pre>