Page 1 of 1

Count Selected Items with FileRequester

Posted: Sun Oct 22, 2006 11:46 pm
by localmotion34
Sometimes, we need to know how many items were selected in a multiselect filerequester.

there are examples of while:wend with nextselectedfilename(), but i am requesting countselectedfilenames().

i think the way Fred has the Filerequester setup, the string returned is delimited with commas, which is then accessed by Nextselectedfilename().

Can you just make a command that counts the number of delimited strings returned by the Internal PB function and gives us a long number back?

Re: Count Selected Items with FileRequester

Posted: Mon Oct 23, 2006 2:23 am
by PB
Yes, it would be handy. After all, CountProgramParameters() exists and does
pretty much the same thing as what you're requesting, except for parameters.