1. Item limit on List control

This is a multi-part message in MIME format.

------=_NextPart_000_0012_01C0CB7D.3B2C8DA0
	charset="iso-8859-1"

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.



------=_NextPart_000_0012_01C0CB7D.3B2C8DA0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Da*n, just hit the 32,767 limit for =
items in a list=20
control!&nbsp; Anyway around this?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial =
size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>API snippet:</FONT></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV><FONT face=3D"Courier New" size=3D2><EM>Windows 95 only: The =
wParam parameter=20
  is limited to 16-bit values. This means list boxes cannot contain more =
than=20
  32,767 items. Although the number of items is restricted, the total =
size in=20
  bytes of the items in a listbox is limited only by available=20
  memory.</EM></FONT></DIV></BLOCKQUOTE>
<DIV><EM><FONT face=3D"Courier New" size=3D2></FONT></EM>&nbsp;</DIV>
<DIV dir=3Dltr><EM><FONT face=3DArial =

------=_NextPart_000_0012_01C0CB7D.3B2C8DA0--

new topic     » topic index » view message » categorize

2. Re: Item limit on List control

----- Original Message -----
From: jjnick at cvn.com
Subject: Item limit on List control


>Da*n, just hit the 32,767 limit for items in a list control!
> Anyway around this?

1) Upgrade Windows.
2) Emulate the list. Do this by trapping scroll events and reload the list
with the next (or previous) set of elements. This makes it look like you
have lots.
3) Don't use a List control.

But, why does one need a list that is so big?

------
Derek Parnell
Melbourne, Australia
"To finish a job quickly, go slower."

new topic     » goto parent     » topic index » view message » categorize

3. 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.
>
>
>
>
>

new topic     » goto parent     » topic index » view message » categorize

4. Re: Item limit on List control

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.
> >
> >
> >
> >
> >
>
>
>
>
>
>
>
>

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu