LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there an inherent limit to the length of a listbox in LabVIEW 2010?

Solved!
Go to solution

Is there an inherent limit to the length (number of lines) of a listbox in LabVIEW 2010?

Thanks.

 

0 Kudos
Message 1 of 7
(2,915 Views)
Solution
Accepted by topic author rickford66

Probably limited to 2^32 entries. 

 

But I bet the UI becomes unmanageable long before that.  I experimented with putting 1 million entries in.  It worked, but my mouse clicks seemed to get slow.

0 Kudos
Message 2 of 7
(2,910 Views)

Ok, thanks.

0 Kudos
Message 3 of 7
(2,908 Views)

I came to the 2^32 number because the underlying item list data in a listbox is a string array.  Array functions are geared towards using a U32 or I32 number to be able to index out the elements.

 

Actually, I'd argue the limit is 2^31 because the datatype of the list box is an I32.  So any number greater than 2^31 would exceed the limits for the listbox datatype.

Message 4 of 7
(2,893 Views)

2^31-1Smiley Wink Bit 31 is the sign bit


"Should be" isn't "Is" -Jay
0 Kudos
Message 5 of 7
(2,888 Views)

2^31

 

Index value is 0 to 2^31-1.   A total of 2^31 items since counting starts at zero. Smiley WinkSmiley Wink  And yes, the 32nd bit (#31 if you count the LSb as being bit #0) is the sign bit.

0 Kudos
Message 6 of 7
(2,876 Views)

@RavensFan wrote:

2^31

 

Index value is 0 to 2^31-1.   A total of 2^31 items since counting starts at zero. Smiley WinkSmiley Wink  And yes, the 32nd bit (#31 if you count the LSb as being bit #0) is the sign bit.


D'Oh


"Should be" isn't "Is" -Jay
Message 7 of 7
(2,861 Views)