Hey,
Is there a limit to the number of items that can be multiselected in a dialog box. I was just wondering because i want it ot select like 300 items at a time so i wanted to be sure before i implemented it,
The .MaxFileSize property limits the size of the filename in bytes and its maximum value is 32K so 300 should fit with no problem.
Two strings walk into a bar. The first string says to the bartender: 'Bartender, I'll have a beer. u.5n$x5t?*&4ru!2[sACC~ErJ'. The second string says: 'Pardon my friend, he isn't NULL terminated'.
Number of item <> File size, so this property should not fit. If you use the common dialog Open dialog, after clicking OK you can get the large filename and split it into a string array. Then, if UBound(arrayname)<=299 (or <300) it is ok and you can go on.
TipGiver, the .MaxFileSize property has got nothing to do with file size; it controls the size of the buffer in which the common dialog returns the selected filename(s). As DrJavaJoe points out, a 32K buffer should be more than sufficient to hold 300 filenames (unless, of course, all your filenames - excluding path, since that is held seperately - are more than about 105 or so characters long)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.