mIRC Home    About    Download    Register    News    Help

Print Thread
#165108 22/11/06 08:40 AM
Joined: Nov 2006
Posts: 1
S
Mostly harmless
OP Offline
Mostly harmless
S
Joined: Nov 2006
Posts: 1
Originally Posted By: mIRC Help File
$msfile(dir,title,oktext)
Displays the multiple select file dialog and returns N, the number of selected files. $msfile(N) returns each file. If too many files are selected, $msfile() returns -1. Title and oktext are optional.


$msfile() doesnt return anything. ex. echo -a $msfile() i get /echo: insufficient parameters (line 83, somescript.ini)

assumin this is a just a typo, using $msfile(0) instead, when too many files are selected, 0 is returned, not -1

usin mIRC 6.2

#165109 22/11/06 11:17 AM
Joined: Oct 2003
Posts: 313
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Oct 2003
Posts: 313
Perhaps $msfile should be doing a bit more parameter checking.

$msfile() is neither of the form $msfile(dir,title,oktext) or $msfile(N), so should probably give a more elucidating error message (invalid parameters to $msfile, perhaps)

However I confirm that $msfile(0) does appear to return 0 if teh preceding $msfile(<dir>) had returned -1.


Sais

Link Copied to Clipboard