Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dialog Multiselect Limit? 3

Status
Not open for further replies.

jsmokey

Technical User
Aug 19, 2005
10
US
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,

thanks
 
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)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top