Solved

# maximum item count of listbox

Posted on 2003-02-19
Medium Priority
324 Views
when populate listbox, how many items can I add to listbox? (maximum limit)
0
Question by:apig
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 3
• 3
• 3
• +3

LVL 70

Expert Comment

ID: 7983666
isn't it 32767 ?
0

LVL 6

Expert Comment

ID: 7984230
I think that's for VB 3.0.  For VB 6, I think it's 2^(32-1).
2,147,483,648 if i'm not mistaken.

TVC
0

LVL 39

Expert Comment

ID: 7985661
it's 32736
0

LVL 4

Expert Comment

ID: 7985931
create a test
add items in loop and you'll know
0

Accepted Solution

boyzl earned 90 total points
ID: 7987025
VB6SP3 tested:

i = 0
Do
i = i + 1
Loop

item no.32737 generates error invalid proc call or ARGUMENT
so the max is definitely 32736 items

regards
0

LVL 6

Expert Comment

ID: 7988846
You're right.  I've been deceived!! :)

TCV
0

LVL 39

Expert Comment

ID: 8622651
have you finished testing or not:)
0

LVL 6

Expert Comment

ID: 8626931
Well... Three months seem more than enough to test...

TCV
0

LVL 6

Expert Comment

ID: 9117801
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

-->Delete - no points refunded

GPrentice00
Cleanup Volunteer
0

LVL 6

Expert Comment

ID: 9117805
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

GPrentice00
Cleanup Volunteer
0

LVL 6

Expert Comment

ID: 9117806
reconsidered
0

LVL 39

Expert Comment

ID: 9119567
why?

if you see my comment its same answer only difference boyzl's commente added a test procedure and my comment is direct answer to the question.
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
###### Suggested Courses
Course of the Month9 days, 15 hours left to enroll