Re: Item limit on List control
- Posted by jjnick at cvn.com Apr 23, 2001
- 358 views
Looks like I am just going to have to do something different . . . Hmmm. . . ----- Original Message ----- From: "Ted Fines" <fines at macalester.edu> To: "EUforum" <EUforum at topica.com> Subject: Re: Item limit on List control > > > Hmmm... How about creating several, organizing them like: > A-D is in listbox1 > E-L is in listbox2 > ...and so on... > This can be troublesome, especially with something like names, as there are > a large number of last names beginning with J, few with U, etc. etc. > > Or, you could determine the number of list boxes needed dynamically by > dividing the number of entries by 32,767, and using that result+1 for the > number of list boxes. > > 32,767 sure is a huge number of items to put in a list box...Might want to > think about a different way to do whatever you're doing... > > Ted > > --On Sunday, April 22, 2001 10:40 PM -0600 jjnick at cvn.com wrote: > > > > > > > > > Feeling blue about the state of your email inbox? Then > > you'll be tickled pink to hear about our free email > > organization solution. Learn more at > > > > > > Da*n, just hit the 32,767 limit for items in a list control! Anyway > > around this? > > > > API snippet: > > > > > > Windows 95 only: The wParam parameter is limited to 16-bit values. This > > means list boxes cannot contain more than 32,767 items. Although the > > number of items is restricted, the total size in bytes of the items in a > > listbox is limited only by available memory. > > > > > > > > > > > > > > > > > >