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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Max entries in a combo box ?

Status
Not open for further replies.

GAORR

Programmer
Nov 22, 2001
48
CA
When loading a combo box, I get the following error -
Run-time error '5'. I displayed a counter to determine how many gets loaded and the error occurs after the 32767 entry is loaded. Any comments would be appreciated.
 
The combo box uses an INT to allocate it's memory space, so you'll not get more than 32736 items.

But a small question - over 30 thousand items in a single combo? Ye Gads! I don't what you're loading in that sucker, but I suggest you find another control, like a Listview (everyone's favorite) or something.
 
Thanks for your quick response. I expected that was the reason - just wanted to confirm. And you are correct, the listview is probably the better way to go.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top