Article View: comp.os.ms-windows.programmer.misc
Article #27Re: **Huge data listbox
From: Peter Gregory
Date: Wed, 28 Oct 1992 00:03
Date: Wed, 28 Oct 1992 00:03
40 lines
2498 bytes
2498 bytes
In article <1992Oct26.183209.14385@tamsun.tamu.edu> c2s4027@tamsun.tamu.edu (Cedric Sims) writes:
>In article <D88-JWA.92Oct26173144@hemul.nada.kth.se> d88-jwa@hemul.nada.kth.se (Jon Wtte) writes:
>>> c2s4027@tamsun.tamu.edu (Cedric Sims) writes:
>>
>> I need some assistance. I need to create a list box that will hold
>> about 4,000 items (character strings), each item occupying ~60 bytes.
>> Of course, the standard listbox control can't handle that much data
>> (LB_ADDSTRING begins to fail).
>>
>>
>>Warning!!! This will be the User Interface From Hell(tm)!!!
>>
>>Also, 60*4,000 is WAAAAY larger than 32k (or even 64k) meaning
>>that you will get narty and severe problems with segmentation
>>of memory.
>>
>>1) Re-think your user interface. Your users deserve something
>>better than a 4000-item list box.
>>
> ...stuff deleted...
>
>>--
>> -- Jon W{tte, h+@nada.kth.se, Mac Hacker Suedoise (not french speaking) --
>>
>> "The User Interface From Hell(tm)" is a trademark of MacroSloth, Inc.
>
>This is what my users want! A search is performed and it generates a list.
>Most of the time, only 10-20 items are found, but it is possible that a user
>can do a search that will generate >4000 items. I just can't work around that.
>In addition, the data must be ordered linearly (sound like a listbox to you?)
>
>Sorry, but re-thinking my interface is not an option. Though this listbox is
>a minor portion, it is integral to the entire system and I must have the
>ability to create a list with >4000 elements. No if's, and's, or but's.
The rest of the world uses a database and extracts a view for the display
from the database. It costs you disk lookups, but it would allow you to
have 4000 items. If you don't have a database, try a file.
Peter
Technical Details
Message-ID:
<1992Oct28.000359.4581@ninja.zso.dec.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!ames!decwrl!deccrl!news.crl.dec.com!pa.dec.com!ninja!flood.zso.dec.com!gregoryReferences:
<1992Oct26.130951.19574@tamsun.tamu.edu> <D88-JWA.92Oct26173144@hemul.nada.kth.se> <1992Oct26.183209.14385@tamsun.tamu.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc,comp.windows.ms.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!ames!decwrl!deccrl!news.crl.dec.com!pa.dec.com!ninja!flood.zso.dec.com!gregory From: gregory@flood.zso.dec.com (Peter Gregory) Subject: Re: **Huge data listbox Message-ID: <1992Oct28.000359.4581@ninja.zso.dec.com> Sender: news@ninja.zso.dec.com (USENET News System) Nntp-Posting-Host: flood.zso.dec.com Organization: Digital Equipment Corporation - DECwest Engineering References: <1992Oct26.130951.19574@tamsun.tamu.edu> <D88-JWA.92Oct26173144@hemul.nada.kth.se> <1992Oct26.183209.14385@tamsun.tamu.edu> Date: Wed, 28 Oct 1992 00:03:59 GMT Lines: 44