Page 1 of 1

[12 Feb 2008] Is this a Bug?

Posted: Sat Jun 13, 2020 5:31 pm
by PEB
Note: This is an archived post that was originally sent to the Hollywood mailing list on Tue, 12 Feb 2008 07:05:37 -0000

If I do this:

Code: Select all

f$=FileRequest("Select Files", "", #REQ_MULTISELECT)
DebugPrint(ListItems(f$))
ListItems() always gives me one too many for the files that I select. Does anyone else have this problem?

[12 Feb 2008] Re: Is this a Bug?

Posted: Sat Jun 13, 2020 5:31 pm
by Clyde
Note: This is an archived post that was originally sent to the Hollywood mailing list on Tue, 12 Feb 2008 23:29:18 +0100

Hi there!

At least I can confirm this behaviour ... Seems to be a bug.

Another issue with that: If I open the dialog with I just able to select _one_ or _all_ files (via the button in the right bottom corner), but I can't select 2 or 3 and so on. How do you do that? If I click a file with LMB and then click on another file, this file is selected and the "old" file is deselected ...

[15 Feb 2008] Re: Is this a Bug?

Posted: Sat Jun 13, 2020 5:31 pm
by airsoftsoftwair
Note: This is an archived post that was originally sent to the Hollywood mailing list on Fri, 15 Feb 2008 20:58:48 +0100
If I do this:

Code: Select all

f$=FileRequest("Select Files", "", #REQ_MULTISELECT)
DebugPrint(ListItems(f$))
ListItems() always gives me one too many for the files that I select. Does anyone else have this problem?
That's not a bug. As documented, the table returned by FileRequest() will always contain a terminating empty string ("") item. Thus, ListItems() returns one more than selected.